commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1164039 - /commons/proper/pool/trunk/src/java/org/apache/commons/pool2/impl/GenericKeyedObjectPool.java
Date Thu, 01 Sep 2011 12:22:19 GMT
Author: markt
Date: Thu Sep  1 12:22:18 2011
New Revision: 1164039

URL: http://svn.apache.org/viewvc?rev=1164039&view=rev
Log:
Remove sync that isn't doing anything

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=1164039&r1=1164038&r2=1164039&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
Thu Sep  1 12:22:18 2011
@@ -1075,7 +1075,7 @@ public class GenericKeyedObjectPool<K,T>
       * @return the number of instances corresponding to the given <code>key</code>
currently idle in this pool
       */
      @Override
-     public synchronized int getNumIdle(K key) {
+     public int getNumIdle(K key) {
          final ObjectDeque<T> objectDeque = poolMap.get(key);
          return objectDeque != null ? objectDeque.getIdleObjects().size() : 0;
      }



Mime
View raw message