directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1546833 - /directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/schema/comparators/DnComparator.java
Date Sun, 01 Dec 2013 18:26:47 GMT
Author: elecharny
Date: Sun Dec  1 18:26:47 2013
New Revision: 1546833

URL: http://svn.apache.org/r1546833
Log:
Fixed the DN comparison method

Modified:
    directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/schema/comparators/DnComparator.java

Modified: directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/schema/comparators/DnComparator.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/schema/comparators/DnComparator.java?rev=1546833&r1=1546832&r2=1546833&view=diff
==============================================================================
--- directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/schema/comparators/DnComparator.java
(original)
+++ directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/schema/comparators/DnComparator.java
Sun Dec  1 18:26:47 2013
@@ -67,14 +67,7 @@ public class DnComparator extends LdapCo
             return -1;
         }
 
-        if ( dn0.equals( dn1 ) )
-        {
-            return 0;
-        }
-        else
-        {
-            return -1;
-        }
+        return dn0.getNormName().compareTo( dn1.getNormName() );
     }
 
 



Mime
View raw message