commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pste...@apache.org
Subject svn commit: r780905 - /commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java
Date Tue, 02 Jun 2009 02:01:23 GMT
Author: psteitz
Date: Tue Jun  2 02:01:22 2009
New Revision: 780905

URL: http://svn.apache.org/viewvc?rev=780905&view=rev
Log:
Ensure that clear() fully clears the pool.

Modified:
    commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java

Modified: commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java
URL: http://svn.apache.org/viewvc/commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java?rev=780905&r1=780904&r2=780905&view=diff
==============================================================================
--- commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java
(original)
+++ commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java
Tue Jun  2 02:01:22 2009
@@ -1293,6 +1293,7 @@
             }
         }
         destroy(toDestroy);
+        _poolMap.clear();
     }
 
     /**
@@ -1403,7 +1404,7 @@
                     }
                 }
             }
-
+            c.clear();
         }
     }
 



Mime
View raw message