commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1364508 - /commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/util/MonitorInputStream.java
Date Mon, 23 Jul 2012 06:12:54 GMT
Author: ggregory
Date: Mon Jul 23 06:12:54 2012
New Revision: 1364508

URL: http://svn.apache.org/viewvc?rev=1364508&view=rev
Log:
Make private ivars final.

Modified:
    commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/util/MonitorInputStream.java

Modified: commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/util/MonitorInputStream.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/util/MonitorInputStream.java?rev=1364508&r1=1364507&r2=1364508&view=diff
==============================================================================
--- commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/util/MonitorInputStream.java
(original)
+++ commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/util/MonitorInputStream.java
Mon Jul 23 06:12:54 2012
@@ -28,8 +28,8 @@ import java.util.concurrent.atomic.Atomi
 public class MonitorInputStream
     extends BufferedInputStream
 {
-    private AtomicBoolean finished = new AtomicBoolean(false);
-    private AtomicLong count = new AtomicLong(0);
+    private final AtomicBoolean finished = new AtomicBoolean(false);
+    private final AtomicLong count = new AtomicLong(0);
 
     public MonitorInputStream(final InputStream in)
     {



Mime
View raw message