[jdom-interest] getText() returns null or ""
Jason Hunter
jhunter at collab.net
Wed Oct 4 08:47:27 PDT 2000
> I think a goal higher than "consistent with the rest of the API"
> is "meaningful semantics". In that case, I think the empty
> string is the way to go.
>
> One could argue, if we're returning nulls, that
> Element.getAllMyFineChildrenElements(),
> if it had none, should return null, instead of Collections.EMPTY_LIST.
Good point, Bob.
+1 for returning "".
-jh-
More information about the jdom-interest
mailing list