commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1331380 - /commons/proper/pool/trunk/src/main/java/org/apache/commons/pool2/impl/GenericKeyedObjectPool.java
Date Fri, 27 Apr 2012 12:18:48 GMT
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



Mime
View raw message