diff options
author | Dominik Stadler <centic@apache.org> | 2017-09-16 08:29:20 +0000 |
---|---|---|
committer | Dominik Stadler <centic@apache.org> | 2017-09-16 08:29:20 +0000 |
commit | 5dadfd7c186030130ac2b13777a0e98bb2b80b8b (patch) | |
tree | b7646c51ef9e0b09b2d32d713a069daaff46b978 /src/testcases/org/apache/poi/ss/util | |
parent | 0297946834c1c6be6a98bdc789ad97da6f67e430 (diff) | |
download | poi-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.java | 2 |
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 " |