Skip to content

Commit 398df52

Browse files
committed
Remove unused offset parameter.
Was it for expected or actual anyway? git-svn-id: https://svn.apache.org/repos/asf/commons/proper/io/trunk@1309619 13f79535-47bb-0310-9956-ffa450edef68
1 parent 1a3e5b2 commit 398df52

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

src/test/java/org/apache/commons/io/input/BOMInputStreamTest.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public InputStream createDataStream(byte[] baseData, boolean addBOM) {
5050
return new ByteArrayInputStream(data);
5151
}
5252

53-
private void assertData(byte[] expected, byte[] actual, int off, int len)
53+
private void assertData(byte[] expected, byte[] actual, int len)
5454
throws Exception {
5555
assertEquals("length", expected.length, len);
5656
for (int ii = 0; ii < expected.length; ii++) {
@@ -97,7 +97,7 @@ public void testSupportCode() throws Exception {
9797

9898
assertData(
9999
new byte[] { (byte) 0xEF, (byte) 0xBB, (byte) 0xBF, 'A', 'B' },
100-
buf, 0, len);
100+
buf, len);
101101
}
102102

103103
public void testReadWithoutBOM() throws Exception {
@@ -223,30 +223,30 @@ public void testLargeBufferWithoutBOM() throws Exception {
223223
byte[] data = new byte[] { 'A', 'B', 'C' };
224224
InputStream in = new BOMInputStream(createDataStream(data, false));
225225
byte[] buf = new byte[1024];
226-
assertData(data, buf, 0, in.read(buf));
226+
assertData(data, buf, in.read(buf));
227227
}
228228

229229
public void testLargeBufferWithBOM() throws Exception {
230230
byte[] data = new byte[] { 'A', 'B', 'C' };
231231
InputStream in = new BOMInputStream(createDataStream(data, true));
232232
byte[] buf = new byte[1024];
233-
assertData(data, buf, 0, in.read(buf));
233+
assertData(data, buf, in.read(buf));
234234
}
235235

236236
public void testSmallBufferWithoutBOM() throws Exception {
237237
byte[] data = new byte[] { 'A', 'B', 'C' };
238238
InputStream in = new BOMInputStream(createDataStream(data, false));
239239
byte[] buf = new byte[1024];
240-
assertData(new byte[] { 'A', 'B' }, buf, 0, in.read(buf, 0, 2));
241-
assertData(new byte[] { 'C' }, buf, 0, in.read(buf, 0, 2));
240+
assertData(new byte[] { 'A', 'B' }, buf, in.read(buf, 0, 2));
241+
assertData(new byte[] { 'C' }, buf, in.read(buf, 0, 2));
242242
}
243243

244244
public void testSmallBufferWithBOM() throws Exception {
245245
byte[] data = new byte[] { 'A', 'B', 'C' };
246246
InputStream in = new BOMInputStream(createDataStream(data, true));
247247
byte[] buf = new byte[1024];
248-
assertData(new byte[] { 'A', 'B' }, buf, 0, in.read(buf, 0, 2));
249-
assertData(new byte[] { 'C' }, buf, 0, in.read(buf, 0, 2));
248+
assertData(new byte[] { 'A', 'B' }, buf, in.read(buf, 0, 2));
249+
assertData(new byte[] { 'C' }, buf, in.read(buf, 0, 2));
250250
}
251251

252252
public void testLeadingNonBOMSingleRead() throws Exception {
@@ -262,7 +262,7 @@ public void testLeadingNonBOMBufferedRead() throws Exception {
262262
byte[] data = new byte[] { (byte) 0xEF, (byte) 0xAB, (byte) 0xCD };
263263
InputStream in = new BOMInputStream(createDataStream(data, false));
264264
byte[] buf = new byte[1024];
265-
assertData(data, buf, 0, in.read(buf));
265+
assertData(data, buf, in.read(buf));
266266
}
267267

268268
public void testSkipWithoutBOM() throws Exception {

0 commit comments

Comments
 (0)