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 2007/05/09 22:00:18 UTC

svn commit: r536635 - /directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/name/Rdn.java

Author: elecharny
Date: Wed May  9 13:00:17 2007
New Revision: 536635

URL: http://svn.apache.org/viewvc?view=rev&rev=536635
Log:
Used the lowerCaseAscii instead of the existing lowerCase method : it's much faster 
when the String is known to contains only Ascii chars

Modified:
    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/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=536635&r1=536634&r2=536635
==============================================================================
--- 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 Wed May  9 13:00:17 2007
@@ -426,7 +426,7 @@
    public Object getValue( String type ) throws InvalidNameException
    {
        // First, let's normalize the type
-       String normalizedType = StringTools.lowerCase( StringTools.trim( type ) );
+       String normalizedType = StringTools.lowerCaseAscii( StringTools.trim( type ) );
 
        switch ( nbAtavs )
        {
@@ -500,7 +500,7 @@
    public AttributeTypeAndValue getAttributeTypeAndValue( String type )
    {
        // First, let's normalize the type
-       String normalizedType = StringTools.lowerCase( StringTools.trim( type ) );
+       String normalizedType = StringTools.lowerCaseAscii( StringTools.trim( type ) );
 
        switch ( nbAtavs )
        {