commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1051946 - in /commons/proper/pool/trunk/src/java/org/apache/commons/pool2/impl: StackKeyedObjectPoolFactory.java StackObjectPool.java StackObjectPoolFactory.java
Date Wed, 22 Dec 2010 15:21:18 GMT
Author: simonetripodi
Date: Wed Dec 22 15:21:18 2010
New Revision: 1051946

URL: http://svn.apache.org/viewvc?rev=1051946&view=rev
Log:
removed no more needed @GuardedBy("this") comments

Modified:
    commons/proper/pool/trunk/src/java/org/apache/commons/pool2/impl/StackKeyedObjectPoolFactory.java
    commons/proper/pool/trunk/src/java/org/apache/commons/pool2/impl/StackObjectPool.java
    commons/proper/pool/trunk/src/java/org/apache/commons/pool2/impl/StackObjectPoolFactory.java

Modified: commons/proper/pool/trunk/src/java/org/apache/commons/pool2/impl/StackKeyedObjectPoolFactory.java
URL: http://svn.apache.org/viewvc/commons/proper/pool/trunk/src/java/org/apache/commons/pool2/impl/StackKeyedObjectPoolFactory.java?rev=1051946&r1=1051945&r2=1051946&view=diff
==============================================================================
--- commons/proper/pool/trunk/src/java/org/apache/commons/pool2/impl/StackKeyedObjectPoolFactory.java
(original)
+++ commons/proper/pool/trunk/src/java/org/apache/commons/pool2/impl/StackKeyedObjectPoolFactory.java
Wed Dec 22 15:21:18 2010
@@ -81,13 +81,13 @@ public class StackKeyedObjectPoolFactory
     /**
      * cap on the number of "sleeping" instances in the pool
      */
-    private volatile int maxSleeping; // @GuardedBy("this")
+    private volatile int maxSleeping;
 
     /**
      * initial size of the pool (this specifies the size of the container,
      * it does not cause the pool to be pre-populated.)
      */
-    private volatile int initIdleCapacity; // @GuardedBy("this")
+    private volatile int initIdleCapacity;
 
     /**
      * Returns the KeyedPoolableObjectFactory used by StackKeyedObjectPools created by this
factory

Modified: commons/proper/pool/trunk/src/java/org/apache/commons/pool2/impl/StackObjectPool.java
URL: http://svn.apache.org/viewvc/commons/proper/pool/trunk/src/java/org/apache/commons/pool2/impl/StackObjectPool.java?rev=1051946&r1=1051945&r2=1051946&view=diff
==============================================================================
--- commons/proper/pool/trunk/src/java/org/apache/commons/pool2/impl/StackObjectPool.java
(original)
+++ commons/proper/pool/trunk/src/java/org/apache/commons/pool2/impl/StackObjectPool.java
Wed Dec 22 15:21:18 2010
@@ -332,12 +332,12 @@ public class StackObjectPool<T> extends 
     /**
      * cap on the number of "sleeping" instances in the pool
      */
-    private volatile int maxSleeping; // @GuardedBy("this")
+    private volatile int maxSleeping;
 
     /**
      * Number of objects borrowed but not yet returned to the pool.
      */
-    private volatile int _numActive = 0; // @GuardedBy("this")
+    private volatile int _numActive = 0;
 
     /**
      * Returns the {@link PoolableObjectFactory} used by this pool to create and manage object
instances.

Modified: commons/proper/pool/trunk/src/java/org/apache/commons/pool2/impl/StackObjectPoolFactory.java
URL: http://svn.apache.org/viewvc/commons/proper/pool/trunk/src/java/org/apache/commons/pool2/impl/StackObjectPoolFactory.java?rev=1051946&r1=1051945&r2=1051946&view=diff
==============================================================================
--- commons/proper/pool/trunk/src/java/org/apache/commons/pool2/impl/StackObjectPoolFactory.java
(original)
+++ commons/proper/pool/trunk/src/java/org/apache/commons/pool2/impl/StackObjectPoolFactory.java
Wed Dec 22 15:21:18 2010
@@ -80,13 +80,13 @@ public class StackObjectPoolFactory<T> i
     /**
      * cap on the number of "sleeping" instances in the pool
      */
-    private volatile int maxSleeping; // @GuardedBy("this")
+    private volatile int maxSleeping;
 
     /**
      * initial size of the pool (this specifies the size of the container,
      * it does not cause the pool to be pre-populated.)
      */
-    private volatile int initIdleCapacity; // @GuardedBy("this")
+    private volatile int initIdleCapacity;
 
     /**
      * Returns the factory used by created pools.



Mime
View raw message