You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2019/08/08 14:18:08 UTC
[commons-io] branch master updated: Use constant instead of new
instance.
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 df262ab Use constant instead of new instance.
df262ab is described below
commit df262ab8ebd23e744622dbc080eb13818251a286
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu Aug 8 10:18:00 2019 -0400
Use constant instead of new instance.
---
src/test/java/org/apache/commons/io/output/ProxyWriterTest.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/test/java/org/apache/commons/io/output/ProxyWriterTest.java b/src/test/java/org/apache/commons/io/output/ProxyWriterTest.java
index fbd49e7..499d46a 100644
--- a/src/test/java/org/apache/commons/io/output/ProxyWriterTest.java
+++ b/src/test/java/org/apache/commons/io/output/ProxyWriterTest.java
@@ -106,7 +106,7 @@ public class ProxyWriterTest {
@Test
public void nullString() throws Exception {
- try (final ProxyWriter proxy = new ProxyWriter(new NullWriter())) {
+ try (final ProxyWriter proxy = new ProxyWriter(NullWriter.NULL_WRITER)) {
proxy.write((String) null);
proxy.write((String) null, 0, 0);
proxy.close();
@@ -115,7 +115,7 @@ public class ProxyWriterTest {
@Test
public void nullCharArray() throws Exception {
- try (final ProxyWriter proxy = new ProxyWriter(new NullWriter())) {
+ try (final ProxyWriter proxy = new ProxyWriter(NullWriter.NULL_WRITER)) {
proxy.write((char[]) null);
proxy.write((char[]) null, 0, 0);
}
@@ -123,7 +123,7 @@ public class ProxyWriterTest {
@Test
public void nullCharSequencec() throws Exception {
- try (final ProxyWriter proxy = new ProxyWriter(new NullWriter())) {
+ try (final ProxyWriter proxy = new ProxyWriter(NullWriter.NULL_WRITER)) {
proxy.append(null);
proxy.close();
}