[Megameknet-cvs] MegaMekNET/src/common/visitor XMLSaveVisitor.java,1.11,1.12
Status: Inactive
Brought to you by:
mcwizard
From: Immanuel S. <im...@us...> - 2005-04-11 19:13:30
|
Update of /cvsroot/megameknet/MegaMekNET/src/common/visitor In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20235/src/common/visitor Modified Files: XMLSaveVisitor.java Log Message: fixed concurent modification bug in blackboard Index: XMLSaveVisitor.java =================================================================== RCS file: /cvsroot/megameknet/MegaMekNET/src/common/visitor/XMLSaveVisitor.java,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** XMLSaveVisitor.java 9 Apr 2005 09:47:45 -0000 1.11 --- XMLSaveVisitor.java 11 Apr 2005 19:13:21 -0000 1.12 *************** *** 468,472 **** public Object visitBlackBoard(BlackBoard data) { Element e = start("blackBoard", data, BlackBoard.class); ! addAllVisitorables(e, null, data.allMessages()); return e; } --- 468,475 ---- public Object visitBlackBoard(BlackBoard data) { Element e = start("blackBoard", data, BlackBoard.class); ! LinkedList l = new LinkedList(); ! for (Iterator it = data.iterator(); it.hasNext();) ! l.add(it.next()); ! addAllVisitorables(e, null, l); return e; } |