directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r590750 - /directory/studio/trunk/studio-schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/schemachecker/SchemaChecker.java
Date Wed, 31 Oct 2007 16:56:04 GMT
Author: pamarcelot
Date: Wed Oct 31 09:56:01 2007
New Revision: 590750

URL: http://svn.apache.org/viewvc?rev=590750&view=rev
Log:
Fixed a ConcurrentModificationException.

Modified:
    directory/studio/trunk/studio-schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/schemachecker/SchemaChecker.java

Modified: directory/studio/trunk/studio-schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/schemachecker/SchemaChecker.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/schemachecker/SchemaChecker.java?rev=590750&r1=590749&r2=590750&view=diff
==============================================================================
--- directory/studio/trunk/studio-schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/schemachecker/SchemaChecker.java
(original)
+++ directory/studio/trunk/studio-schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/schemachecker/SchemaChecker.java
Wed Oct 31 09:56:01 2007
@@ -94,7 +94,8 @@
 
         public void attributeTypeModified( AttributeTypeImpl at )
         {
-            List<?> deps = ( List<?> ) dependenciesMap.get( at );
+            List<Object> deps = new ArrayList<Object>();
+            deps.addAll( ( List<?> ) dependenciesMap.get( at ) );
 
             checkAttributeType( at );
 
@@ -106,7 +107,8 @@
 
         public void attributeTypeRemoved( AttributeTypeImpl at )
         {
-            List<?> deps = ( List<?> ) dependenciesMap.get( at );
+            List<Object> deps = new ArrayList<Object>();
+            deps.addAll( ( List<?> ) dependenciesMap.get( at ) );
 
             removeSchemaObject( at );
 
@@ -126,7 +128,8 @@
 
         public void objectClassModified( ObjectClassImpl oc )
         {
-            List<?> deps = ( List<?> ) dependenciesMap.get( oc );
+            List<Object> deps = new ArrayList<Object>();
+            deps.addAll( ( List<?> ) dependenciesMap.get( oc ) );
 
             checkObjectClass( oc );
 
@@ -138,7 +141,8 @@
 
         public void objectClassRemoved( ObjectClassImpl oc )
         {
-            List<?> deps = ( List<?> ) dependenciesMap.get( oc );
+            List<Object> deps = new ArrayList<Object>();
+            deps.addAll( ( List<?> ) dependenciesMap.get( oc ) );
 
             removeSchemaObject( oc );
 



Mime
View raw message