commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1206501 - /commons/proper/pool/branches/POOL_1_X/src/java/org/apache/commons/pool/impl/SoftReferenceObjectPool.java
Date Sat, 26 Nov 2011 17:11:41 GMT
Author: sebb
Date: Sat Nov 26 17:11:40 2011
New Revision: 1206501

URL: http://svn.apache.org/viewvc?rev=1206501&view=rev
Log:
private write-once field might as well be final

Modified:
    commons/proper/pool/branches/POOL_1_X/src/java/org/apache/commons/pool/impl/SoftReferenceObjectPool.java

Modified: commons/proper/pool/branches/POOL_1_X/src/java/org/apache/commons/pool/impl/SoftReferenceObjectPool.java
URL: http://svn.apache.org/viewvc/commons/proper/pool/branches/POOL_1_X/src/java/org/apache/commons/pool/impl/SoftReferenceObjectPool.java?rev=1206501&r1=1206500&r2=1206501&view=diff
==============================================================================
--- commons/proper/pool/branches/POOL_1_X/src/java/org/apache/commons/pool/impl/SoftReferenceObjectPool.java
(original)
+++ commons/proper/pool/branches/POOL_1_X/src/java/org/apache/commons/pool/impl/SoftReferenceObjectPool.java
Sat Nov 26 17:11:40 2011
@@ -348,7 +348,7 @@ public class SoftReferenceObjectPool ext
     }
 
     /** My pool. */
-    private List _pool = null;
+    private final List _pool;
 
     /** My {@link PoolableObjectFactory}. */
     private PoolableObjectFactory _factory = null;
@@ -361,5 +361,5 @@ public class SoftReferenceObjectPool ext
     private final ReferenceQueue refQueue = new ReferenceQueue();
 
     /** Number of active objects. */
-    private int _numActive = 0;
+    private int _numActive = 0; //@GuardeBy("this")
 }



Mime
View raw message