You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by ka...@apache.org on 2010/10/16 21:55:09 UTC

svn commit: r1023367 - /directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/event/LeafEvaluator.java

Author: kayyagari
Date: Sat Oct 16 19:55:08 2010
New Revision: 1023367

URL: http://svn.apache.org/viewvc?rev=1023367&view=rev
Log:
o fixed the comparision logic)

Modified:
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/event/LeafEvaluator.java

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/event/LeafEvaluator.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/event/LeafEvaluator.java?rev=1023367&r1=1023366&r2=1023367&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/event/LeafEvaluator.java (original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/event/LeafEvaluator.java Sat Oct 16 19:55:08 2010
@@ -190,7 +190,7 @@ public class LeafEvaluator implements Ev
                 Object normValue = normalizer.normalize( value );
 
                 // Found a value that is greater than or equal to the ava value
-                if ( 0 >= comparator.compare( normValue, filterValue ) )
+                if ( comparator.compare( normValue, filterValue ) >= 0 )
                 {
                     return true;
                 }
@@ -203,7 +203,7 @@ public class LeafEvaluator implements Ev
                 Object normValue = normalizer.normalize( value );
 
                 // Found a value that is less than or equal to the ava value
-                if ( 0 <= comparator.compare( normValue, filterValue ) )
+                if ( comparator.compare( normValue, filterValue ) <= 0 )
                 {
                     return true;
                 }