[jdom-interest] Latest source findings

Jason Hunter jhunter at collab.net
Fri Jun 30 10:45:30 PDT 2000


Gabor Greif wrote:
> 
> 1) In Namespace.java
> Shouldn't Namespace implement Serializable?
> 
> public final class Namespace implements java.io.Serializable { ...

Yes, but that's not enough.  There should only be one instance of any
given Namespace prefix/uri pair.  Just making it Serializable would
allow for there to be multiple instances.  That requires custom hooks in
the serialization process that make use of Namespace.getNamespace() to
ensure uniqueness; we may even need to make the class Externalizable, I
haven't thought it thru.  Fixing this is one of the items listed in
TODO.txt.  If you want to investigate and make a suggested fix, feel
free!

> 2) In DocType.java two imports are unnecessary.
> 
> import java.util.LinkedList;
> import java.util.List;

Cool, just fixed in CVS. 

-jh-



More information about the jdom-interest mailing list