commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r952064 - /commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java
Date Mon, 07 Jun 2010 02:01:38 GMT
Author: sebb
Date: Mon Jun  7 02:01:38 2010
New Revision: 952064

URL: http://svn.apache.org/viewvc?rev=952064&view=rev
Log:
POOL-158 No need for get/setMinIdle to be synch. now that _minIdle is volatile

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=952064&r1=952063&r2=952064&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
Mon Jun  7 02:01:38 2010
@@ -805,7 +805,7 @@ public class GenericKeyedObjectPool exte
      * @see #getMinIdle
      * @see #setTimeBetweenEvictionRunsMillis
      */
-    public synchronized void setMinIdle(int poolSize) {
+    public void setMinIdle(int poolSize) {
         _minIdle = poolSize;
     }
 
@@ -819,7 +819,7 @@ public class GenericKeyedObjectPool exte
      * @since Pool 1.3
      * @see #setTimeBetweenEvictionRunsMillis
      */
-    public synchronized int getMinIdle() {
+    public int getMinIdle() {
         return _minIdle;
     }
 



Mime
View raw message