directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r737939 - /directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/comparators/TelephoneNumberComparator.java
Date Mon, 26 Jan 2009 23:41:51 GMT
Author: elecharny
Date: Mon Jan 26 23:41:50 2009
New Revision: 737939

URL: http://svn.apache.org/viewvc?rev=737939&view=rev
Log:
Comparison should be case insensitive.

Modified:
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/comparators/TelephoneNumberComparator.java

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/comparators/TelephoneNumberComparator.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/comparators/TelephoneNumberComparator.java?rev=737939&r1=737938&r2=737939&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/comparators/TelephoneNumberComparator.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/comparators/TelephoneNumberComparator.java
Mon Jan 26 23:41:50 2009
@@ -85,6 +85,6 @@
         telephoneNumber1 = strip( telephoneNumber1 );
         telephoneNumber2 = strip( telephoneNumber2 );
         
-        return ( telephoneNumber1.compareTo( telephoneNumber2 ) );
+        return ( telephoneNumber1.compareToIgnoreCase( telephoneNumber2 ) );
     }
 }



Mime
View raw message