You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2016/05/21 05:50:56 UTC
svn commit: r1744836 -
/directory/shared/branches/shared-value/ldap/model/src/main/java/org/apache/directory/api/ldap/model/schema/registries/DefaultSchemaObjectRegistry.java
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 )