Author: gwoolsey
Date: Tue Feb 14 20:25:46 2017
New Revision: 1783022

URL: http://svn.apache.org/viewvc?rev=1783022&view=rev
Log:
Fix accidental call to a method added in Java 7, which for some reason Eclipse 
didn't flag, even with compliance level set to 1.6. 

Modified:
    
poi/trunk/src/java/org/apache/poi/ss/formula/EvaluationConditionalFormatRule.java

Modified: 
poi/trunk/src/java/org/apache/poi/ss/formula/EvaluationConditionalFormatRule.java
URL: 
http://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/ss/formula/EvaluationConditionalFormatRule.java?rev=1783022&r1=1783021&r2=1783022&view=diff
==============================================================================
--- 
poi/trunk/src/java/org/apache/poi/ss/formula/EvaluationConditionalFormatRule.java
 (original)
+++ 
poi/trunk/src/java/org/apache/poi/ss/formula/EvaluationConditionalFormatRule.java
 Tue Feb 14 20:25:46 2017
@@ -213,9 +213,9 @@ public class EvaluationConditionalFormat
         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() {



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to