commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r806006 - /commons/proper/io/trunk/src/test/org/apache/commons/io/input/CharSequenceReaderTest.java
Date Wed, 19 Aug 2009 23:02:25 GMT
Author: sebb
Date: Wed Aug 19 23:02:25 2009
New Revision: 806006

URL: http://svn.apache.org/viewvc?rev=806006&view=rev
Log:
Unnecessary cast; javadoc error; raw types

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

Modified: commons/proper/io/trunk/src/test/org/apache/commons/io/input/CharSequenceReaderTest.java
URL: http://svn.apache.org/viewvc/commons/proper/io/trunk/src/test/org/apache/commons/io/input/CharSequenceReaderTest.java?rev=806006&r1=806005&r2=806006&view=diff
==============================================================================
--- commons/proper/io/trunk/src/test/org/apache/commons/io/input/CharSequenceReaderTest.java
(original)
+++ commons/proper/io/trunk/src/test/org/apache/commons/io/input/CharSequenceReaderTest.java
Wed Aug 19 23:02:25 2009
@@ -46,7 +46,7 @@
     }
 
     /** Test {@link Reader#markSupported()}. */
-    public void testMarkSupported() throws IOException {
+    public void testMarkSupported() {
         Reader reader = new CharSequenceReader("FooBar");
         assertTrue(reader.markSupported());
     }
@@ -65,7 +65,7 @@
         checkRead(reader, "Foo");
     }
 
-    /** Test {@link Reader#skip(int)}. */
+    /** Test {@link Reader#skip(long)}. */
     public void testSkip() throws IOException {
         Reader reader = new CharSequenceReader("FooBar");
         assertEquals(3, reader.skip(3));
@@ -119,10 +119,10 @@
     private void checkRead(Reader reader, String expected) throws IOException {
         for (int i = 0; i < expected.length(); i++) {
             assertEquals("Read[" + i + "] of '" + expected + "'", 
-                    (char)expected.charAt(i), (char)reader.read());
+                    expected.charAt(i), (char)reader.read());
         }
     }
-    private void checkArray(char[] expected, char[] actual) throws IOException {
+    private void checkArray(char[] expected, char[] actual) {
         for (int i = 0; i < expected.length; i++) {
             assertEquals("Compare[" +i + "]", expected[i], actual[i]);
         }



Mime
View raw message