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
The following commit(s) were added to refs/heads/master by this push: new cdbda96 Resue ClosedOutputStream.CLOSED_OUTPUT_STREAM. cdbda96 is described below commit cdbda9679f66b4fd5d7fe089240ca6bfd19b1efc Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Mon May 4 11:20:50 2020 -0400 Resue ClosedOutputStream.CLOSED_OUTPUT_STREAM. --- src/test/java/org/apache/commons/io/output/TaggedOutputStreamTest.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/test/java/org/apache/commons/io/output/TaggedOutputStreamTest.java b/src/test/java/org/apache/commons/io/output/TaggedOutputStreamTest.java index 097916b..2212b8f 100644 --- a/src/test/java/org/apache/commons/io/output/TaggedOutputStreamTest.java +++ b/src/test/java/org/apache/commons/io/output/TaggedOutputStreamTest.java @@ -103,8 +103,7 @@ public class TaggedOutputStreamTest { @Test public void testOtherException() throws Exception { final IOException exception = new IOException("test exception"); - try (final OutputStream closed = new ClosedOutputStream(); - final TaggedOutputStream stream = new TaggedOutputStream(closed)) { + try (final TaggedOutputStream stream = new TaggedOutputStream(ClosedOutputStream.CLOSED_OUTPUT_STREAM)) { assertFalse(stream.isCauseOf(exception)); assertFalse(stream.isCauseOf(new TaggedIOException(exception, UUID.randomUUID())));