directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r537523 - /directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/LongComparator.java
Date Sat, 12 May 2007 22:51:55 GMT
Author: elecharny
Date: Sat May 12 15:51:53 2007
New Revision: 537523

URL: http://svn.apache.org/viewvc?view=rev&rev=537523
Log:
For some reason, the test was wrong into the metjod (it returned 
-1 instead of 1).

Modified:
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/LongComparator.java

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/LongComparator.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/LongComparator.java?view=diff&rev=537523&r1=537522&r2=537523
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/LongComparator.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/LongComparator.java
Sat May 12 15:51:53 2007
@@ -53,7 +53,7 @@
     	{
             Long long1 = (Long)obj1;
             Long long2 = (Long)obj2;
-            return long1 < long2 ? -1 : long1 == long2 ? 0 : -1 ;
+            return long1.compareTo( long2 );
     	}
     	catch ( NullPointerException npe )
     	{



Mime
View raw message