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 2016/04/16 01:59:26 UTC

svn commit: r1739387 - /commons/proper/net/trunk/src/test/java/org/apache/commons/net/util/UtilTest.java

Author: ggregory
Date: Fri Apr 15 23:59:26 2016
New Revision: 1739387

URL: http://svn.apache.org/viewvc?rev=1739387&view=rev
Log:
Add final to private fields.

Modified:
    commons/proper/net/trunk/src/test/java/org/apache/commons/net/util/UtilTest.java

Modified: commons/proper/net/trunk/src/test/java/org/apache/commons/net/util/UtilTest.java
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/test/java/org/apache/commons/net/util/UtilTest.java?rev=1739387&r1=1739386&r2=1739387&view=diff
==============================================================================
--- commons/proper/net/trunk/src/test/java/org/apache/commons/net/util/UtilTest.java (original)
+++ commons/proper/net/trunk/src/test/java/org/apache/commons/net/util/UtilTest.java Fri Apr 15 23:59:26 2016
@@ -37,10 +37,10 @@ import org.junit.Test;
 
 public class UtilTest {
 
-    private Writer dest = new CharArrayWriter();
-    private Reader source = new CharArrayReader(new char[]{'a'});
-    private InputStream src = new ByteArrayInputStream(new byte[]{'z'});
-    private OutputStream dst = new ByteArrayOutputStream();
+    private final Writer dest = new CharArrayWriter();
+    private final Reader source = new CharArrayReader(new char[]{'a'});
+    private final InputStream src = new ByteArrayInputStream(new byte[]{'z'});
+    private final OutputStream dst = new ByteArrayOutputStream();
 
     @Test
     public void testcloseQuietly() {