directory-commits mailing list archives

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

URL: http://svn.apache.org/viewvc?rev=1744833&view=rev
Log:
Don't uppercase, it will be done in the hasExtension() method

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

Modified: directory/shared/branches/shared-value/ldap/model/src/main/java/org/apache/directory/api/ldap/model/schema/AbstractSchemaObject.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-value/ldap/model/src/main/java/org/apache/directory/api/ldap/model/schema/AbstractSchemaObject.java?rev=1744833&r1=1744832&r2=1744833&view=diff
==============================================================================
--- directory/shared/branches/shared-value/ldap/model/src/main/java/org/apache/directory/api/ldap/model/schema/AbstractSchemaObject.java
(original)
+++ directory/shared/branches/shared-value/ldap/model/src/main/java/org/apache/directory/api/ldap/model/schema/AbstractSchemaObject.java
Sat May 21 05:47:42 2016
@@ -519,15 +519,13 @@ public abstract class AbstractSchemaObje
     @Override
     public List<String> getExtension( String extension )
     {
-        String name = Strings.toUpperCaseAscii( extension );
-
-        if ( hasExtension( name ) )
+        if ( hasExtension( extension ) )
         {
             for ( Map.Entry<String, List<String>> entry : extensions.entrySet()
)
             {
                 String key = entry.getKey();
                 
-                if ( name.equalsIgnoreCase( key ) )
+                if ( extension.equalsIgnoreCase( key ) )
                 {
                     return entry.getValue();
                 }



Mime
View raw message