directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r432296 - /directory/branches/apacheds/1.0/core/src/main/java/org/apache/directory/server/core/schema/SchemaService.java
Date Thu, 17 Aug 2006 16:43:40 GMT
Author: elecharny
Date: Thu Aug 17 09:43:39 2006
New Revision: 432296

URL: http://svn.apache.org/viewvc?rev=432296&view=rev
Log:
The Collections.addAll does not exist in 1.4. Substituted this method
by a loop.

Modified:
    directory/branches/apacheds/1.0/core/src/main/java/org/apache/directory/server/core/schema/SchemaService.java

Modified: directory/branches/apacheds/1.0/core/src/main/java/org/apache/directory/server/core/schema/SchemaService.java
URL: http://svn.apache.org/viewvc/directory/branches/apacheds/1.0/core/src/main/java/org/apache/directory/server/core/schema/SchemaService.java?rev=432296&r1=432295&r2=432296&view=diff
==============================================================================
--- directory/branches/apacheds/1.0/core/src/main/java/org/apache/directory/server/core/schema/SchemaService.java
(original)
+++ directory/branches/apacheds/1.0/core/src/main/java/org/apache/directory/server/core/schema/SchemaService.java
Thu Aug 17 09:43:39 2006
@@ -18,7 +18,6 @@
 
 
 import java.util.ArrayList;
-import java.util.Collections;
 import java.util.HashSet;
 import java.util.Iterator;
 import java.util.List;
@@ -1203,7 +1202,12 @@
         }
         
         // add all the required attributes for this objectClass 
-        Collections.addAll( set, oc.getMustList() );
+        AttributeType[] attributeTypes = oc.getMustList(); 
+        
+        for (int i = 0; i < attributeTypes.length; i++ )
+        {
+        	set.add( attributeTypes[i] );
+        }
         
         // don't bother ascending if no parents exist
         ObjectClass[] parents = oc.getSuperClasses();



Mime
View raw message