diff options
author | Dominik Stadler <centic@apache.org> | 2017-09-16 08:29:06 +0000 |
---|---|---|
committer | Dominik Stadler <centic@apache.org> | 2017-09-16 08:29:06 +0000 |
commit | 0297946834c1c6be6a98bdc789ad97da6f67e430 (patch) | |
tree | 4e2b1c7198223c190b10b9ee24303093794f7905 /src/testcases/org/apache/poi/ss/util | |
parent | 7c01f5a50cbd2506a02f58ee0189e906a80fef11 (diff) | |
download | poi-0297946834c1c6be6a98bdc789ad97da6f67e430.tar.gz poi-0297946834c1c6be6a98bdc789ad97da6f67e430.zip |
Fix some warnings in unit tests
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1808521 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, 2 insertions, 0 deletions
diff --git a/src/testcases/org/apache/poi/ss/util/TestNumberComparer.java b/src/testcases/org/apache/poi/ss/util/TestNumberComparer.java index 506df67494..33cf09ad75 100644 --- a/src/testcases/org/apache/poi/ss/util/TestNumberComparer.java +++ b/src/testcases/org/apache/poi/ss/util/TestNumberComparer.java @@ -73,6 +73,7 @@ public final class TestNumberComparer { public void testSpecificExampleA() { double a = 0.06-0.01; double b = 0.05; + //noinspection ConstantConditions assertFalse(a == b); assertEquals(0, NumberComparer.compare(a, b)); } @@ -84,6 +85,7 @@ public final class TestNumberComparer { public void testSpecificExampleB() { double a = 1+1.0028-0.9973; double b = 1.0055; + //noinspection ConstantConditions assertFalse(a == b); assertEquals(0, NumberComparer.compare(a, b)); } |