Skip to content

Commit aea39f7

Browse files
committed
Unnecessary cast; javadoc error; raw types
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/io/trunk@806006 13f79535-47bb-0310-9956-ffa450edef68
1 parent 9883d20 commit aea39f7

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public void testClose() throws IOException {
4646
}
4747

4848
/** Test {@link Reader#markSupported()}. */
49-
public void testMarkSupported() throws IOException {
49+
public void testMarkSupported() {
5050
Reader reader = new CharSequenceReader("FooBar");
5151
assertTrue(reader.markSupported());
5252
}
@@ -65,7 +65,7 @@ public void testMark() throws IOException {
6565
checkRead(reader, "Foo");
6666
}
6767

68-
/** Test {@link Reader#skip(int)}. */
68+
/** Test {@link Reader#skip(long)}. */
6969
public void testSkip() throws IOException {
7070
Reader reader = new CharSequenceReader("FooBar");
7171
assertEquals(3, reader.skip(3));
@@ -119,10 +119,10 @@ public void testReadCharArrayPortion() throws IOException {
119119
private void checkRead(Reader reader, String expected) throws IOException {
120120
for (int i = 0; i < expected.length(); i++) {
121121
assertEquals("Read[" + i + "] of '" + expected + "'",
122-
(char)expected.charAt(i), (char)reader.read());
122+
expected.charAt(i), (char)reader.read());
123123
}
124124
}
125-
private void checkArray(char[] expected, char[] actual) throws IOException {
125+
private void checkArray(char[] expected, char[] actual) {
126126
for (int i = 0; i < expected.length; i++) {
127127
assertEquals("Compare[" +i + "]", expected[i], actual[i]);
128128
}

0 commit comments

Comments
 (0)