Skip to content

Commit ac22689

Browse files
committed
Clean up
1 parent cb0e601 commit ac22689

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ public void testAvailableAfterOpen(final int len) throws Exception {
5555
}
5656
}
5757

58+
@SuppressWarnings({ "resource", "deprecation" })
5859
@Test
5960
public void testCloseHandleIOException() throws IOException {
60-
final IOException exception = new IOException();
61-
ProxyInputStreamTest.testCloseHandleIOException(new CountingInputStream(new BrokenInputStream(exception)));
61+
ProxyInputStreamTest.testCloseHandleIOException(new CountingInputStream(new BrokenInputStream((Throwable) new IOException())));
6262
}
6363

6464
@Test

0 commit comments

Comments
 (0)