commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1309619 - /commons/proper/io/trunk/src/test/java/org/apache/commons/io/input/BOMInputStreamTest.java
Date Wed, 04 Apr 2012 23:04:27 GMT
Author: sebb
Date: Wed Apr  4 23:04:27 2012
New Revision: 1309619

URL: http://svn.apache.org/viewvc?rev=1309619&view=rev
Log:
Remove unused offset parameter.
Was it for expected or actual anyway?

Modified:
    commons/proper/io/trunk/src/test/java/org/apache/commons/io/input/BOMInputStreamTest.java

Modified: commons/proper/io/trunk/src/test/java/org/apache/commons/io/input/BOMInputStreamTest.java
URL: http://svn.apache.org/viewvc/commons/proper/io/trunk/src/test/java/org/apache/commons/io/input/BOMInputStreamTest.java?rev=1309619&r1=1309618&r2=1309619&view=diff
==============================================================================
--- commons/proper/io/trunk/src/test/java/org/apache/commons/io/input/BOMInputStreamTest.java
(original)
+++ commons/proper/io/trunk/src/test/java/org/apache/commons/io/input/BOMInputStreamTest.java
Wed Apr  4 23:04:27 2012
@@ -50,7 +50,7 @@ public class BOMInputStreamTest extends 
         return new ByteArrayInputStream(data);
     }
 
-    private void assertData(byte[] expected, byte[] actual, int off, int len)
+    private void assertData(byte[] expected, byte[] actual, int len)
         throws Exception {
         assertEquals("length", expected.length, len);
         for (int ii = 0; ii < expected.length; ii++) {
@@ -97,7 +97,7 @@ public class BOMInputStreamTest extends 
 
         assertData(
                 new byte[] { (byte) 0xEF, (byte) 0xBB, (byte) 0xBF, 'A', 'B' },
-                buf, 0, len);
+                buf, len);
     }
 
     public void testReadWithoutBOM() throws Exception {
@@ -223,30 +223,30 @@ public class BOMInputStreamTest extends 
         byte[] data = new byte[] { 'A', 'B', 'C' };
         InputStream in = new BOMInputStream(createDataStream(data, false));
         byte[] buf = new byte[1024];
-        assertData(data, buf, 0, in.read(buf));
+        assertData(data, buf, in.read(buf));
     }
 
     public void testLargeBufferWithBOM() throws Exception {
         byte[] data = new byte[] { 'A', 'B', 'C' };
         InputStream in = new BOMInputStream(createDataStream(data, true));
         byte[] buf = new byte[1024];
-        assertData(data, buf, 0, in.read(buf));
+        assertData(data, buf, in.read(buf));
     }
 
     public void testSmallBufferWithoutBOM() throws Exception {
         byte[] data = new byte[] { 'A', 'B', 'C' };
         InputStream in = new BOMInputStream(createDataStream(data, false));
         byte[] buf = new byte[1024];
-        assertData(new byte[] { 'A', 'B' }, buf, 0, in.read(buf, 0, 2));
-        assertData(new byte[] { 'C' }, buf, 0, in.read(buf, 0, 2));
+        assertData(new byte[] { 'A', 'B' }, buf, in.read(buf, 0, 2));
+        assertData(new byte[] { 'C' }, buf, in.read(buf, 0, 2));
     }
 
     public void testSmallBufferWithBOM() throws Exception {
         byte[] data = new byte[] { 'A', 'B', 'C' };
         InputStream in = new BOMInputStream(createDataStream(data, true));
         byte[] buf = new byte[1024];
-        assertData(new byte[] { 'A', 'B' }, buf, 0, in.read(buf, 0, 2));
-        assertData(new byte[] { 'C' }, buf, 0, in.read(buf, 0, 2));
+        assertData(new byte[] { 'A', 'B' }, buf, in.read(buf, 0, 2));
+        assertData(new byte[] { 'C' }, buf, in.read(buf, 0, 2));
     }
 
     public void testLeadingNonBOMSingleRead() throws Exception {
@@ -262,7 +262,7 @@ public class BOMInputStreamTest extends 
         byte[] data = new byte[] { (byte) 0xEF, (byte) 0xAB, (byte) 0xCD };
         InputStream in = new BOMInputStream(createDataStream(data, false));
         byte[] buf = new byte[1024];
-        assertData(data, buf, 0, in.read(buf));
+        assertData(data, buf, in.read(buf));
     }
 
     public void testSkipWithoutBOM() throws Exception {



Mime
View raw message