commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1051849 - /commons/proper/pool/trunk/src/java/org/apache/commons/pool2/impl/StackObjectPool.java
Date Wed, 22 Dec 2010 11:28:17 GMT
Author: simonetripodi
Date: Wed Dec 22 11:28:16 2010
New Revision: 1051849

URL: http://svn.apache.org/viewvc?rev=1051849&view=rev
Log:
getFactory() method doesn't need to be synchronized since _factory is private final

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

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=1051849&r1=1051848&r2=1051849&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 11:28:16 2010
@@ -345,7 +345,7 @@ public class StackObjectPool<T> extends 
      * @return the factory
      * @since 1.5.5
      */
-    public synchronized PoolableObjectFactory<T> getFactory() {
+    public PoolableObjectFactory<T> getFactory() {
         return _factory;
     }
 



Mime
View raw message