directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1073430 - /directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/ParentIdAndRdn.java
Date Tue, 22 Feb 2011 17:36:54 GMT
Author: elecharny
Date: Tue Feb 22 17:36:53 2011
New Revision: 1073430

URL: http://svn.apache.org/viewvc?rev=1073430&view=rev
Log:
Replaced a RDN comparison using RDN.CompareTo by a direct String comparison

Modified:
    directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/ParentIdAndRdn.java

Modified: directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/ParentIdAndRdn.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/ParentIdAndRdn.java?rev=1073430&r1=1073429&r2=1073430&view=diff
==============================================================================
--- directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/ParentIdAndRdn.java
(original)
+++ directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/ParentIdAndRdn.java
Tue Feb 22 17:36:53 2011
@@ -153,7 +153,7 @@ public class ParentIdAndRdn<ID extends C
         return compareTo( ( ParentIdAndRdn<ID> ) obj ) == 0;
     }
 
-
+    
     /**
      * {@inheritDoc}
      */
@@ -168,7 +168,7 @@ public class ParentIdAndRdn<ID extends C
 
         for ( int i = 0; i < this.rdns.length; i++ )
         {
-            val = this.rdns[i].compareTo( that.rdns[i] );
+            val = this.rdns[i].getNormName().compareTo( that.rdns[i].getNormName() );
             
             if ( val != 0 )
             {



Mime
View raw message