commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1622091 - /commons/proper/pool/trunk/src/test/java/org/apache/commons/pool2/impl/TestAbandonedObjectPool.java
Date Tue, 02 Sep 2014 19:00:01 GMT
Author: sebb
Date: Tue Sep  2 19:00:00 2014
New Revision: 1622091

URL: http://svn.apache.org/r1622091
Log:
Object is not replaced so might as well be final

Modified:
    commons/proper/pool/trunk/src/test/java/org/apache/commons/pool2/impl/TestAbandonedObjectPool.java

Modified: commons/proper/pool/trunk/src/test/java/org/apache/commons/pool2/impl/TestAbandonedObjectPool.java
URL: http://svn.apache.org/viewvc/commons/proper/pool/trunk/src/test/java/org/apache/commons/pool2/impl/TestAbandonedObjectPool.java?rev=1622091&r1=1622090&r2=1622091&view=diff
==============================================================================
--- commons/proper/pool/trunk/src/test/java/org/apache/commons/pool2/impl/TestAbandonedObjectPool.java
(original)
+++ commons/proper/pool/trunk/src/test/java/org/apache/commons/pool2/impl/TestAbandonedObjectPool.java
Tue Sep  2 19:00:00 2014
@@ -354,7 +354,7 @@ class PooledTestObject implements Tracke
     private boolean destroyed = false;
     private int _hash = 0;
     private boolean _abandoned = false;
-    private static AtomicInteger hash = new AtomicInteger();
+    private static final AtomicInteger hash = new AtomicInteger();
 
     public PooledTestObject() {
         _hash = hash.incrementAndGet();



Mime
View raw message