commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pste...@apache.org
Subject svn commit: r965338 - in /commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl: SoftReferenceObjectPool.java StackObjectPool.java
Date Mon, 19 Jul 2010 01:09:29 GMT
Author: psteitz
Date: Mon Jul 19 01:09:29 2010
New Revision: 965338

URL: http://svn.apache.org/viewvc?rev=965338&view=rev
Log:
Synchronized new (in 1.5.5) factory getters.  These need to be synchronized until the now
deprecated setters are removed.  JIRA: POOL-169.

Modified:
    commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/SoftReferenceObjectPool.java
    commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/StackObjectPool.java

Modified: commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/SoftReferenceObjectPool.java
URL: http://svn.apache.org/viewvc/commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/SoftReferenceObjectPool.java?rev=965338&r1=965337&r2=965338&view=diff
==============================================================================
--- commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/SoftReferenceObjectPool.java
(original)
+++ commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/SoftReferenceObjectPool.java
Mon Jul 19 01:09:29 2010
@@ -343,7 +343,7 @@ public class SoftReferenceObjectPool ext
      * @return the factory
      * @since 1.5.5
      */
-    public PoolableObjectFactory getFactory() {
+    public synchronized PoolableObjectFactory getFactory() { 
         return _factory;
     }
 

Modified: commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/StackObjectPool.java
URL: http://svn.apache.org/viewvc/commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/StackObjectPool.java?rev=965338&r1=965337&r2=965338&view=diff
==============================================================================
--- commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/StackObjectPool.java (original)
+++ commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/StackObjectPool.java Mon
Jul 19 01:09:29 2010
@@ -434,7 +434,7 @@ public class StackObjectPool extends Bas
      * @return the factory
      * @since 1.5.5
      */
-    public PoolableObjectFactory getFactory() {
+    public synchronized PoolableObjectFactory getFactory() {
         return _factory;
     }
 



Mime
View raw message