[jdom-interest] ConcurrentModificationException - why?
Robert Koberg
rob at koberg.com
Fri Dec 13 14:16:31 PST 2002
Arrghhh, Thanks that did it.
> -----Original Message-----
> From: jdom-interest-admin at jdom.org
> [mailto:jdom-interest-admin at jdom.org]On Behalf Of Bradley S. Huffman
> Sent: Friday, December 13, 2002 2:10 PM
>
> "Robert Koberg" writes:
>
> > private void removeColumns(Element elem) {
> > List cols = elem.getChildren("col");
> > for (Iterator i = cols.iterator(); i.hasNext();) {
> > Element col = (Element)i.next();
> > elem.removeContent(col);
>
> ^^^^^^^^^^^^^^^^^^^^^^^^^ here
> Try i.remove();
>
> Brad
More information about the jdom-interest
mailing list