[jdom-interest] Re: getText() returns null or ""

Edoardo Comar edoardo at knowledgeview.co.uk
Wed Oct 4 10:54:14 PDT 2000

I vote for returning ""

long live EMPTY_LIST, arrays with 0 size, EMPTY_STRING, and the like :-)
in my own code I make extensive use of NullObjects (a special instance of a

I always regret later if sometimes I give semantics to the null pointer,
treating it as a value, because of the NPEs or the unnecessary complex
calling code.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://jdom.org/pipermail/jdom-interest/attachments/20001004/c91dc5c9/attachment.htm

More information about the jdom-interest mailing list