ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: FW: ConcurrentModificationException
Date Tue, 15 Jul 2003 08:35:57 GMT
With a loop like

            for (int i = 0; i < children.size(); i++) {
                Object o = children.get(i);

instead of

            Iterator it = children.iterator();
            while (it.hasNext()) {
                Object o = it.next();

we should be on the save side, I think.  children can only grow as
there are only methods to add, not to remove tasks/types.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message