directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1744836 - /directory/shared/branches/shared-value/ldap/model/src/main/java/org/apache/directory/api/ldap/model/schema/registries/DefaultSchemaObjectRegistry.java
Date Sat, 21 May 2016 05:50:56 GMT
Author: elecharny
Date: Sat May 21 05:50:56 2016
New Revision: 1744836

URL: http://svn.apache.org/viewvc?rev=1744836&view=rev
Log:
Avoid a useless check

Modified:
    directory/shared/branches/shared-value/ldap/model/src/main/java/org/apache/directory/api/ldap/model/schema/registries/DefaultSchemaObjectRegistry.java

Modified: directory/shared/branches/shared-value/ldap/model/src/main/java/org/apache/directory/api/ldap/model/schema/registries/DefaultSchemaObjectRegistry.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-value/ldap/model/src/main/java/org/apache/directory/api/ldap/model/schema/registries/DefaultSchemaObjectRegistry.java?rev=1744836&r1=1744835&r2=1744836&view=diff
==============================================================================
--- directory/shared/branches/shared-value/ldap/model/src/main/java/org/apache/directory/api/ldap/model/schema/registries/DefaultSchemaObjectRegistry.java
(original)
+++ directory/shared/branches/shared-value/ldap/model/src/main/java/org/apache/directory/api/ldap/model/schema/registries/DefaultSchemaObjectRegistry.java
Sat May 21 05:50:56 2016
@@ -215,13 +215,13 @@ public abstract class DefaultSchemaObjec
         {
             // let's try with trimming and lowercasing now
             schemaObject = byName.get( Strings.trim( Strings.toLowerCaseAscii( oid ) ) );
-        }
 
-        if ( schemaObject == null )
-        {
-            String msg = I18n.err( I18n.ERR_04269, schemaObjectType.name(), oid );
-            LOG.debug( msg );
-            throw new LdapException( msg );
+            if ( schemaObject == null )
+            {
+                String msg = I18n.err( I18n.ERR_04269, schemaObjectType.name(), oid );
+                LOG.debug( msg );
+                throw new LdapException( msg );
+            }
         }
 
         if ( DEBUG )



Mime
View raw message