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 16f0596 Use constant instead of new instance. 16f0596 is described below commit 16f05968f6806b6db6d9b80c150e631cb3971cb3 Author: Gary Gregory <gardgreg...@gmail.com> AuthorDate: Thu Aug 8 10:19:00 2019 -0400 Use constant instead of new instance. --- src/test/java/org/apache/commons/io/output/NullWriterTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/org/apache/commons/io/output/NullWriterTest.java b/src/test/java/org/apache/commons/io/output/NullWriterTest.java index 4d7ce28..d13fc7a 100644 --- a/src/test/java/org/apache/commons/io/output/NullWriterTest.java +++ b/src/test/java/org/apache/commons/io/output/NullWriterTest.java @@ -28,7 +28,7 @@ public class NullWriterTest { @Test public void testNull() { final char[] chars = new char[] { 'A', 'B', 'C' }; - try (final NullWriter writer = new NullWriter()) { + try (final NullWriter writer = NullWriter.NULL_WRITER) { writer.write(1); writer.write(chars); writer.write(chars, 1, 1);