aboutsummaryrefslogtreecommitdiffstats
path: root/src/testcases/org/apache/poi/util
diff options
context:
space:
mode:
authorYegor Kozlov <yegor@apache.org>2012-03-05 09:44:20 +0000
committerYegor Kozlov <yegor@apache.org>2012-03-05 09:44:20 +0000
commitd8c58eb036ca3d212d60b125fd60dd3e5f0972f3 (patch)
treeddc4c37d820c0988a205943ce792c95f7bc7dca2 /src/testcases/org/apache/poi/util
parente3f83511dc4294002fa7d71e3d1eb2952eed41fb (diff)
downloadpoi-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.java4
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));