commons-commits mailing list archives

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



Mime
View raw message