commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1334480 - /commons/proper/pool/trunk/src/main/java/org/apache/commons/pool2/impl/GenericKeyedObjectPool.java
Date Sat, 05 May 2012 20:08:50 GMT
Author: markt
Date: Sat May  5 20:08:50 2012
New Revision: 1334480

URL: http://svn.apache.org/viewvc?rev=1334480&view=rev
Log:
Add a comment

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=1334480&r1=1334479&r2=1334480&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
Sat May  5 20:08:50 2012
@@ -1102,6 +1102,9 @@ public class GenericKeyedObjectPool<K,T>
         // Calculate current pool objects
         ObjectDeque<T> objectDeque = poolMap.get(key);
 
+        // objectDeque == null is OK here. It is handled correctly by both
+        // methods called below.
+
         // this method isn't synchronized so the
         // calculateDeficit is done at the beginning
         // as a loop limit and a second time inside the loop



Mime
View raw message