directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r537117 - in /directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/name: AttributeTypeAndValue.java Rdn.java
Date Fri, 11 May 2007 06:53:02 GMT
Author: elecharny
Date: Thu May 10 23:53:01 2007
New Revision: 537117

URL: http://svn.apache.org/viewvc?view=rev&rev=537117
Log:
Replaced the String.lowerCase() method by the faster 
StringTools.lowerCaseAscii() method, which is used for AttributeType.

Modified:
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/name/AttributeTypeAndValue.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/name/Rdn.java

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/name/AttributeTypeAndValue.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/name/AttributeTypeAndValue.java?view=diff&rev=537117&r1=537116&r2=537117
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/name/AttributeTypeAndValue.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/name/AttributeTypeAndValue.java
Thu May 10 23:53:01 2007
@@ -121,7 +121,6 @@
             throw new InvalidNameException( "Null or empty type is not allowed" );
         }
 
-        // normType = type.trim().toLowerCase();
         normType = StringTools.lowerCaseAscii( type.trim() );
         this.upType = upType;
         this.upValue = upValue;

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/name/Rdn.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/name/Rdn.java?view=diff&rev=537117&r1=537116&r2=537117
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/name/Rdn.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/name/Rdn.java
Thu May 10 23:53:01 2007
@@ -357,7 +357,7 @@
    /* Unspecified protection */void addAttributeTypeAndValue( String upType, String type,
Object upValue, Object value ) throws InvalidNameException
    {
        // First, let's normalize the type
-       String normalizedType = type.toLowerCase();
+       String normalizedType = StringTools.lowerCaseAscii(type);
        Object normalizedValue = value;
 
        switch ( nbAtavs )



Mime
View raw message