directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r892900 - /directory/apacheds/branches/apacheds-schema/core-api/src/main/java/org/apache/directory/server/core/schema/DescriptionParsers.java
Date Mon, 21 Dec 2009 17:43:58 GMT
Author: elecharny
Date: Mon Dec 21 17:43:57 2009
New Revision: 892900

URL: http://svn.apache.org/viewvc?rev=892900&view=rev
Log:
The parsed ObjectClass wasn't used at all, it was replaced by a new object.

Modified:
    directory/apacheds/branches/apacheds-schema/core-api/src/main/java/org/apache/directory/server/core/schema/DescriptionParsers.java

Modified: directory/apacheds/branches/apacheds-schema/core-api/src/main/java/org/apache/directory/server/core/schema/DescriptionParsers.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-schema/core-api/src/main/java/org/apache/directory/server/core/schema/DescriptionParsers.java?rev=892900&r1=892899&r2=892900&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-schema/core-api/src/main/java/org/apache/directory/server/core/schema/DescriptionParsers.java
(original)
+++ directory/apacheds/branches/apacheds-schema/core-api/src/main/java/org/apache/directory/server/core/schema/DescriptionParsers.java
Mon Dec 21 17:43:57 2009
@@ -429,11 +429,10 @@
                 }
             }
 
-            ObjectClass oc = new ObjectClass( objectClass.getOid() );
             List<Throwable> errors = new ArrayList<Throwable>();
-            oc.setRegistries( schemaManager.getRegistries() );
+            objectClass.setRegistries( schemaManager.getRegistries() );
 
-            objectClasses[pos++] = oc;
+            objectClasses[pos++] = objectClass;
         }
 
         return objectClasses;



Mime
View raw message