You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ma...@apache.org on 2012/05/05 22:08:50 UTC
svn commit: r1334480 -
/commons/proper/pool/trunk/src/main/java/org/apache/commons/pool2/impl/GenericKeyedObjectPool.java
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