commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ki...@apache.org
Subject svn commit: r1541662 - /commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/range/LongRange.java
Date Wed, 13 Nov 2013 19:09:03 GMT
Author: kinow
Date: Wed Nov 13 19:09:03 2013
New Revision: 1541662

URL: http://svn.apache.org/r1541662
Log:
Back off from Java 7 methods in LongRange

Modified:
    commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/range/LongRange.java

Modified: commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/range/LongRange.java
URL: http://svn.apache.org/viewvc/commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/range/LongRange.java?rev=1541662&r1=1541661&r2=1541662&view=diff
==============================================================================
--- commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/range/LongRange.java
(original)
+++ commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/range/LongRange.java
Wed Nov 13 19:09:03 2013
@@ -189,7 +189,7 @@ public final class LongRange extends Num
             }
 
             public boolean hasNext() {
-                final int cmp = Long.compare(currentValue, rightEndpoint.getValue());
+                final int cmp = Long.valueOf(currentValue).compareTo(rightEndpoint.getValue());
 
                 if (cmp == 0) {
                     return rightEndpoint.getBoundType() == BoundType.CLOSED;



Mime
View raw message