[jdom-interest] why did you change Element.addContent?

Alex Rosen arosen at novell.com
Tue Mar 9 11:16:53 PST 2004


There was some talk of changing it back, because the benefit of the
Parent notion was not worth  the cost in broken code. Jason, what did
you decide on this?

Alex

>>> "Davide Rossi" <rossi at cs.unibo.it> 3/7/2004 1:27:05 PM >>>
I used to write code like:

propsElem.addContent(new
Element("getlastmodified").addContent(resourceInfo.httpDate));

and I think it was just fine. This was a distinctive trait of jdom.
I've seen other people complaining in this list but I've seen no
replies:
what's the rationale behind changing the API like this?
Or do you think that a code with a thousand casts in it is "good"
code?

Davide.



_______________________________________________
To control your jdom-interest membership:
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com



More information about the jdom-interest mailing list