This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-io.git
commit ac226897fc60c2ecc00653fdd0085a7d0064cb78 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Sun Jul 14 10:35:07 2024 -0400 Clean up --- .../java/org/apache/commons/io/input/CountingInputStreamTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/apache/commons/io/input/CountingInputStreamTest.java b/src/test/java/org/apache/commons/io/input/CountingInputStreamTest.java index 7d19fe450..c9fbcd924 100644 --- a/src/test/java/org/apache/commons/io/input/CountingInputStreamTest.java +++ b/src/test/java/org/apache/commons/io/input/CountingInputStreamTest.java @@ -55,10 +55,10 @@ public class CountingInputStreamTest { } } + @SuppressWarnings({ "resource", "deprecation" }) @Test public void testCloseHandleIOException() throws IOException { - final IOException exception = new IOException(); - ProxyInputStreamTest.testCloseHandleIOException(new CountingInputStream(new BrokenInputStream(exception))); + ProxyInputStreamTest.testCloseHandleIOException(new CountingInputStream(new BrokenInputStream((Throwable) new IOException()))); } @Test