You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2012/04/27 14:18:48 UTC
svn commit: r1331380 -
/commons/proper/pool/trunk/src/main/java/org/apache/commons/pool2/impl/GenericKeyedObjectPool.java
Author: sebb
Date: Fri Apr 27 12:18:47 2012
New Revision: 1331380
URL: http://svn.apache.org/viewvc?rev=1331380&view=rev
Log:
Make immutable private field final
Modified:
commons/proper/pool/trunk/src/main/java/org/apache/commons/pool2/impl/GenericKeyedObjectPool.java
Modified: commons/proper/pool/trunk/src/main/java/org/apache/commons/pool2/impl/GenericKeyedObjectPool.java
URL: http://svn.apache.org/viewvc/commons/proper/pool/trunk/src/main/java/org/apache/commons/pool2/impl/GenericKeyedObjectPool.java?rev=1331380&r1=1331379&r2=1331380&view=diff
==============================================================================
--- commons/proper/pool/trunk/src/main/java/org/apache/commons/pool2/impl/GenericKeyedObjectPool.java (original)
+++ commons/proper/pool/trunk/src/main/java/org/apache/commons/pool2/impl/GenericKeyedObjectPool.java Fri Apr 27 12:18:47 2012
@@ -1176,7 +1176,7 @@ public class GenericKeyedObjectPool<K,T>
*
* <p>Destroys idle instances in the pool by invoking {@link #clear()}.</p>
*
- * @throws Exception
+ * @throws RuntimeException
*/
@Override
public void close() {
@@ -2281,7 +2281,7 @@ public class GenericKeyedObjectPool<K,T>
* environment the context class loader for the evictor thread may have
* visibility of the correct factory. See POOL-161.
*/
- private ClassLoader factoryClassLoader = null;
+ private final ClassLoader factoryClassLoader;
/**
* My hash of pools (ObjectQueue). The list of keys <b>must</b> be kept in