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

Davide Rossi rossi at cs.unibo.it
Sun Mar 7 10:27:05 PST 2004


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.






More information about the jdom-interest mailing list