commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r1541657 - in /commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/range: CharacterRange.java IntegerRange.java
Date Wed, 13 Nov 2013 18:53:33 GMT
Author: mbenson
Date: Wed Nov 13 18:53:32 2013
New Revision: 1541657

URL: http://svn.apache.org/r1541657
Log:
back off from Java 7 methods

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

Modified: commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/range/CharacterRange.java
URL: http://svn.apache.org/viewvc/commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/range/CharacterRange.java?rev=1541657&r1=1541656&r2=1541657&view=diff
==============================================================================
--- commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/range/CharacterRange.java
(original)
+++ commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/range/CharacterRange.java
Wed Nov 13 18:53:32 2013
@@ -186,7 +186,7 @@ public final class CharacterRange extend
             }
 
             public boolean hasNext() {
-                final int cmp = Integer.compare(currentValue, rightEndpoint.getValue());
+                final int cmp = Character.valueOf(currentValue).compareTo(rightEndpoint.getValue());
 
                 if (cmp == 0) {
                     return rightEndpoint.getBoundType() == BoundType.CLOSED;

Modified: commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/range/IntegerRange.java
URL: http://svn.apache.org/viewvc/commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/range/IntegerRange.java?rev=1541657&r1=1541656&r2=1541657&view=diff
==============================================================================
--- commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/range/IntegerRange.java
(original)
+++ commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/range/IntegerRange.java
Wed Nov 13 18:53:32 2013
@@ -203,7 +203,7 @@ public class IntegerRange extends Numeri
             }
 
             public boolean hasNext() {
-                final int cmp = Integer.compare(currentValue, rightEndpoint.getValue());
+                final int cmp = Integer.valueOf(currentValue).compareTo(rightEndpoint.getValue());
 
                 if (cmp == 0) {
                     return rightEndpoint.getBoundType() == BoundType.CLOSED;



Mime
View raw message