[jdom-interest] Moving elements
Jason Hunter
jhunter at servlets.com
Fri May 2 10:33:52 PDT 2003
Alex Rosen wrote:
>
> "It's impossible to ensure that a content given back from a getContent will be not removed later."
>
> That's the case with or without this proposed change - it's the design of JDOM that the returned lists are live in this way.
Actually, you can wrap the List with Collections.unmodifiableList().
That works regardless of whether we auto-detach or not.
-jh-
More information about the jdom-interest
mailing list