diff options
author | Dominik Stadler <centic@apache.org> | 2017-09-16 08:29:28 +0000 |
---|---|---|
committer | Dominik Stadler <centic@apache.org> | 2017-09-16 08:29:28 +0000 |
commit | 12c9b2391742e45e7878eb0be4474c1b8f56b0ad (patch) | |
tree | 7b178a37cf5b96ce2628ab2db6fd6142e489b3d6 /src/testcases/org/apache/poi/ss/util/TestCellAddress.java | |
parent | 5dadfd7c186030130ac2b13777a0e98bb2b80b8b (diff) | |
download | poi-12c9b2391742e45e7878eb0be4474c1b8f56b0ad.tar.gz poi-12c9b2391742e45e7878eb0be4474c1b8f56b0ad.zip |
Fix some compiler warnings
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1808523 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org/apache/poi/ss/util/TestCellAddress.java')
-rw-r--r-- | src/testcases/org/apache/poi/ss/util/TestCellAddress.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/testcases/org/apache/poi/ss/util/TestCellAddress.java b/src/testcases/org/apache/poi/ss/util/TestCellAddress.java index 57d7a1a17e..96c783f6a7 100644 --- a/src/testcases/org/apache/poi/ss/util/TestCellAddress.java +++ b/src/testcases/org/apache/poi/ss/util/TestCellAddress.java @@ -27,8 +27,6 @@ import java.util.Arrays; /** * Tests that the common CellAddress works as we need it to. - * Note - some additional testing is also done in the HSSF class, - * {@link org.apache.poi.hssf.util.TestCellAddress} */ public final class TestCellAddress { @Test @@ -60,6 +58,7 @@ public final class TestCellAddress { assertNotEquals(new CellReference(4, 6), new CellReference(6, 4)); } + @SuppressWarnings("EqualsWithItself") @Test public void testCompareTo() { final CellAddress A1 = new CellAddress(0, 0); @@ -89,7 +88,7 @@ public final class TestCellAddress { CellAddress[] sorted = {A1, B1, A2, B2}; CellAddress[] unsorted = {B1, B2, A1, A2}; - assumeTrue(!sorted.equals(unsorted)); + assumeTrue(!Arrays.equals(sorted, unsorted)); Arrays.sort(unsorted); assertArrayEquals(sorted, unsorted); } |