aboutsummaryrefslogtreecommitdiffstats
path: root/src/testcases/org/apache/poi/ss/util
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2017-09-16 08:29:20 +0000
committerDominik Stadler <centic@apache.org>2017-09-16 08:29:20 +0000
commit5dadfd7c186030130ac2b13777a0e98bb2b80b8b (patch)
treeb7646c51ef9e0b09b2d32d713a069daaff46b978 /src/testcases/org/apache/poi/ss/util
parent0297946834c1c6be6a98bdc789ad97da6f67e430 (diff)
downloadpoi-5dadfd7c186030130ac2b13777a0e98bb2b80b8b.tar.gz
poi-5dadfd7c186030130ac2b13777a0e98bb2b80b8b.zip
Use Integer.compare() where possible
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1808522 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org/apache/poi/ss/util')
-rw-r--r--src/testcases/org/apache/poi/ss/util/TestNumberComparer.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testcases/org/apache/poi/ss/util/TestNumberComparer.java b/src/testcases/org/apache/poi/ss/util/TestNumberComparer.java
index 33cf09ad75..b48ebee5a7 100644
--- a/src/testcases/org/apache/poi/ss/util/TestNumberComparer.java
+++ b/src/testcases/org/apache/poi/ss/util/TestNumberComparer.java
@@ -93,7 +93,7 @@ public final class TestNumberComparer {
private static boolean confirm(int i, double a, double b, int expRes) {
int actRes = NumberComparer.compare(a, b);
- int sgnActRes = actRes < 0 ? -1 : actRes > 0 ? +1 : 0;
+ int sgnActRes = Integer.compare(actRes, 0);
if (sgnActRes != expRes) {
System.err.println("Mismatch example[" + i + "] ("
+ formatDoubleAsHex(a) + ", " + formatDoubleAsHex(b) + ") expected "