]> source.dussan.org Git - poi.git/commitdiff
Fix accidental call to a method added in Java 7, which for some reason Eclipse didn...
authorGreg Woolsey <gwoolsey@apache.org>
Tue, 14 Feb 2017 20:25:46 +0000 (20:25 +0000)
committerGreg Woolsey <gwoolsey@apache.org>
Tue, 14 Feb 2017 20:25:46 +0000 (20:25 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1783022 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/ss/formula/EvaluationConditionalFormatRule.java

index 7fb1377dfc2be387202badc05a2d0d3197328340..9ccb5bd5eaac33bda240c547572b630a252e250a 100644 (file)
@@ -213,9 +213,9 @@ public class EvaluationConditionalFormatRule implements Comparable<EvaluationCon
         cmp = (x < y) ? -1 : ((x == y) ? 0 : 1);
         if (cmp != 0) return cmp;
 
-        cmp = Integer.compare(getFormattingIndex(), o.getFormattingIndex());
+        cmp = new Integer(getFormattingIndex()).compareTo(new Integer(o.getFormattingIndex()));
         if (cmp != 0) return cmp;
-        return Integer.compare(getRuleIndex(), o.getRuleIndex());
+        return new Integer(getRuleIndex()).compareTo(new Integer(o.getRuleIndex()));
     }
     
     public int hashCode() {