directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r536642 - /directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/add/AddRequest.java
Date Wed, 09 May 2007 20:04:28 GMT
Author: elecharny
Date: Wed May  9 13:04:27 2007
New Revision: 536642

URL: http://svn.apache.org/viewvc?view=rev&rev=536642
Log:
There is no need to lowercase the attributeType, it is already lowerCased

Modified:
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/add/AddRequest.java

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/add/AddRequest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/add/AddRequest.java?view=diff&rev=536642&r1=536641&r2=536642
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/add/AddRequest.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/add/AddRequest.java
Wed May  9 13:04:27 2007
@@ -149,14 +149,14 @@
     public void addAttributeType( String type )
     {
         // do not create a new attribute if we have seen this attributeType before
-        if ( attributes.get( type.toLowerCase() ) != null )
+        if ( attributes.get( type ) != null )
         {
-            currentAttribute = attributes.get( type.toLowerCase() );
+            currentAttribute = attributes.get( type );
             return;
         }
         
         // fix this to use AttributeImpl(type.getString().toLowerCase())
-        currentAttribute = new AttributeImpl( type.toLowerCase() );
+        currentAttribute = new AttributeImpl( type );
         attributes.put( currentAttribute );
     }
 



Mime
View raw message