commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1164625 - /commons/proper/pool/trunk/src/java/org/apache/commons/pool2/impl/GenericKeyedObjectPool.java
Date Fri, 02 Sep 2011 16:48:59 GMT
Author: markt
Date: Fri Sep  2 16:48:59 2011
New Revision: 1164625

URL: http://svn.apache.org/viewvc?rev=1164625&view=rev
Log:
Fix typo

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

Modified: commons/proper/pool/trunk/src/java/org/apache/commons/pool2/impl/GenericKeyedObjectPool.java
URL: http://svn.apache.org/viewvc/commons/proper/pool/trunk/src/java/org/apache/commons/pool2/impl/GenericKeyedObjectPool.java?rev=1164625&r1=1164624&r2=1164625&view=diff
==============================================================================
--- commons/proper/pool/trunk/src/java/org/apache/commons/pool2/impl/GenericKeyedObjectPool.java
(original)
+++ commons/proper/pool/trunk/src/java/org/apache/commons/pool2/impl/GenericKeyedObjectPool.java
Fri Sep  2 16:48:59 2011
@@ -1329,21 +1329,21 @@ public class GenericKeyedObjectPool<K,T>
         return p;
     }
 
-    private boolean destroy(K key, PooledObject<T> toDestory, boolean always)
+    private boolean destroy(K key, PooledObject<T> toDestroy, boolean always)
             throws Exception {
         
         register(key);
-        toDestory.invalidate();
+        toDestroy.invalidate();
 
         try {
             ObjectDeque<T> objectDeque = poolMap.get(key);
-            boolean isIdle = objectDeque.getIdleObjects().remove(toDestory);
+            boolean isIdle = objectDeque.getIdleObjects().remove(toDestroy);
             
             if (isIdle || always) {
-                objectDeque.getAllObjects().remove(toDestory.getObject());
+                objectDeque.getAllObjects().remove(toDestroy.getObject());
         
                 try {
-                    _factory.destroyObject(key, toDestory.getObject());
+                    _factory.destroyObject(key, toDestroy.getObject());
                 } finally {
                     objectDeque.getCreateCount().decrementAndGet();
                     destroyedCount.incrementAndGet();



Mime
View raw message