diff options
author | Yegor Kozlov <yegor@apache.org> | 2012-03-05 09:44:20 +0000 |
---|---|---|
committer | Yegor Kozlov <yegor@apache.org> | 2012-03-05 09:44:20 +0000 |
commit | d8c58eb036ca3d212d60b125fd60dd3e5f0972f3 (patch) | |
tree | ddc4c37d820c0988a205943ce792c95f7bc7dca2 /src/testcases/org/apache/poi/util | |
parent | e3f83511dc4294002fa7d71e3d1eb2952eed41fb (diff) | |
download | poi-d8c58eb036ca3d212d60b125fd60dd3e5f0972f3.tar.gz poi-d8c58eb036ca3d212d60b125fd60dd3e5f0972f3.zip |
optimized unused imports and removed deprecation warnings in poi-main
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1296979 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org/apache/poi/util')
-rw-r--r-- | src/testcases/org/apache/poi/util/TestLittleEndian.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testcases/org/apache/poi/util/TestLittleEndian.java b/src/testcases/org/apache/poi/util/TestLittleEndian.java index 4313e34991..f398ff40a3 100644 --- a/src/testcases/org/apache/poi/util/TestLittleEndian.java +++ b/src/testcases/org/apache/poi/util/TestLittleEndian.java @@ -160,7 +160,7 @@ public final class TestLittleEndian extends TestCase { testdata[0] = ( short ) 0xFF01; testdata[1] = 0x02FF; - LittleEndian.putShort(received, testdata[0]); + LittleEndian.putShort(received, 0, testdata[0]); assertTrue(compareByteArrays(received, expected, 0, LittleEndian.SHORT_SIZE)); LittleEndian.putShort(received, 1, testdata[1]); assertTrue(compareByteArrays(received, expected, 1, LittleEndian.SHORT_SIZE)); @@ -180,7 +180,7 @@ public final class TestLittleEndian extends TestCase { }; byte[] received = new byte[ LittleEndian.INT_SIZE + 1 ]; - LittleEndian.putInt(received, 0xFFFFFF01); + LittleEndian.putInt(received, 0, 0xFFFFFF01); assertTrue(compareByteArrays(received, expected, 0, LittleEndian.INT_SIZE)); LittleEndian.putInt(received, 1, 0x02FFFFFF); assertTrue(compareByteArrays(received, expected, 1, LittleEndian.INT_SIZE)); |