directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r892871 - /directory/shared/branches/shared-schema/ldap-schema-loader/src/main/java/org/apache/directory/shared/schema/loader/ldif/SchemaEntityFactory.java
Date Mon, 21 Dec 2009 16:38:05 GMT
Author: elecharny
Date: Mon Dec 21 16:38:05 2009
New Revision: 892871

URL: http://svn.apache.org/viewvc?rev=892871&view=rev
Log:
Reverted some of the modifications for Normalizers and SyntaxCheckers...

Modified:
    directory/shared/branches/shared-schema/ldap-schema-loader/src/main/java/org/apache/directory/shared/schema/loader/ldif/SchemaEntityFactory.java

Modified: directory/shared/branches/shared-schema/ldap-schema-loader/src/main/java/org/apache/directory/shared/schema/loader/ldif/SchemaEntityFactory.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-schema/ldap-schema-loader/src/main/java/org/apache/directory/shared/schema/loader/ldif/SchemaEntityFactory.java?rev=892871&r1=892870&r2=892871&view=diff
==============================================================================
--- directory/shared/branches/shared-schema/ldap-schema-loader/src/main/java/org/apache/directory/shared/schema/loader/ldif/SchemaEntityFactory.java
(original)
+++ directory/shared/branches/shared-schema/ldap-schema-loader/src/main/java/org/apache/directory/shared/schema/loader/ldif/SchemaEntityFactory.java
Mon Dec 21 16:38:05 2009
@@ -284,13 +284,6 @@
         // Create the syntaxChecker instance
         syntaxChecker = ( SyntaxChecker ) clazz.newInstance();
 
-        // Check that the loaded OID is the same than the description OID
-        if ( !syntaxChecker.getOid().equals( oid ) )
-        {
-            String msg = "The SyntaxChecker OID (" + oid + ") is different from the loaded
class' OID (" + syntaxChecker.getOid();
-            throw new LdapInvalidAttributeValueException( msg, ResultCodeEnum.UNWILLING_TO_PERFORM
);
-        }
-
         // Update the common fields
         syntaxChecker.setBytecode( byteCodeStr );
         syntaxChecker.setFqcn( className );
@@ -562,13 +555,6 @@
         // Create the normalizer instance
         normalizer = ( Normalizer ) clazz.newInstance();
         
-        // Check that the loaded OID is the same than the description OID
-        if ( !normalizer.getOid().equals( oid ) )
-        {
-            String msg = "The Normalizer's OID (" + oid + ") is different from the loaded
class' OID (" + normalizer.getOid();
-            throw new LdapInvalidAttributeValueException( msg, ResultCodeEnum.UNWILLING_TO_PERFORM
);
-        }
-
         // Update the common fields
         normalizer.setBytecode( byteCodeStr );
         normalizer.setFqcn( className );



Mime
View raw message