directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r1023367 - /directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/event/LeafEvaluator.java
Date Sat, 16 Oct 2010 19:55:09 GMT
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;
                 }



Mime
View raw message