directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r536635 - /directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/name/Rdn.java
Date Wed, 09 May 2007 20:00:18 GMT
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 )
        {



Mime
View raw message