svn commit: r15396 - trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/RootContainerAdapter.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: tfmorris
Date: 2008-07-28 13:30:08-0700
New Revision: 15396

Modified:
   trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/RootContainerAdapter.java

Log:
Fix ConcurrentModificationException

Modified: trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/RootContainerAdapter.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/RootContainerAdapter.java?view=diff&rev=15396&p1=trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/RootContainerAdapter.java&p2=trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/RootContainerAdapter.java&r1=15395&r2=15396
==============================================================================
--- trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/RootContainerAdapter.java	(original)
+++ trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/RootContainerAdapter.java	2008-07-28 13:30:08-0700
@@ -1,5 +1,5 @@
 // $Id$
-// Copyright (c) 2007, The ArgoUML Project
+// Copyright (c) 2007, 2008 Bogdan Pistol and other contributors
 // All rights reserved.
 //
 // Redistribution and use in source and binary forms, with or without
@@ -102,7 +102,8 @@
      * Removes this listener from all the notifiers' eAdapters list.
      */
     public void removeAllAdapters() {
-        for (Notifier n : notifiers) {
+        List<Notifier> notifiersToRemove = new ArrayList<Notifier>(notifiers);
+        for (Notifier n : notifiersToRemove) {
             super.removeAdapter(n);
         }
         if (rootContainer != null) {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.