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:20:09 UTC
svn commit: r1331381 -
/commons/proper/pool/trunk/src/main/java/org/apache/commons/pool2/impl/GenericObjectPool.java
Author: sebb
Date: Fri Apr 27 12:20:09 2012
New Revision: 1331381
URL: http://svn.apache.org/viewvc?rev=1331381&view=rev
Log:
Make immutable private field final
Modified:
commons/proper/pool/trunk/src/main/java/org/apache/commons/pool2/impl/GenericObjectPool.java
Modified: commons/proper/pool/trunk/src/main/java/org/apache/commons/pool2/impl/GenericObjectPool.java
URL: http://svn.apache.org/viewvc/commons/proper/pool/trunk/src/main/java/org/apache/commons/pool2/impl/GenericObjectPool.java?rev=1331381&r1=1331380&r2=1331381&view=diff
==============================================================================
--- commons/proper/pool/trunk/src/main/java/org/apache/commons/pool2/impl/GenericObjectPool.java (original)
+++ commons/proper/pool/trunk/src/main/java/org/apache/commons/pool2/impl/GenericObjectPool.java Fri Apr 27 12:20:09 2012
@@ -1038,7 +1038,7 @@ public class GenericObjectPool<T> extend
* Destroys idle instances in the pool by invoking {@link #clear()}.
* </p>
*
- * @throws Exception
+ * @throws RuntimeException
*/
@Override
public void close() {
@@ -1624,7 +1624,7 @@ public class GenericObjectPool<T> extend
* 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;
/**
* All of the objects currently associated with this pool in any state. It