[jdom-interest] getText

Christophe D. Laprun chris.laprun at nist.gov
Wed Oct 4 14:07:44 PDT 2000

Jason Hunter wrote:

> Well, not quite.  We had defined getText() to return null and never
> return "".  So the second test should never have been necessary.
> Still, I remain +1 on returning "".

Same here. It just seems more intuitive from the API point of view to
return "". At least, that's my gut feeling. The first time I used
getText, I didn't read the doc entirely and wrote my code assuming that
it would return "" if no text was present.
Just my two cents.


Christophe Laprun    [Ingenieur ISIMA, France / Guest researcher @NIST]
email: chris.laprun at nist.gov
phone: (301) 975 3191             fax: (301) 670 0939
web: http://www.nist.gov/speech/staff/laprunch.htm
Press Enter to Exit. --Computer 'help' message

More information about the jdom-interest mailing list