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.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1783022 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Greg Woolsey 2017-02-14 20:25:46 +00:00
parent 17158da008
commit 273da440e1
1 changed files with 2 additions and 2 deletions

View 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() {