You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ma...@apache.org on 2012/04/24 16:41:25 UTC

svn commit: r1329745 - /commons/proper/pool/trunk/src/main/java/org/apache/commons/pool2/impl/GenericObjectPool.java

Author: markt
Date: Tue Apr 24 14:41:25 2012
New Revision: 1329745

URL: http://svn.apache.org/viewvc?rev=1329745&view=rev
Log:
Remove unnecessary object creation. New policy object is always created via constructor

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

Modified: commons/proper/pool/trunk/src/main/java/org/apache/commons/pool2/impl/GenericObjectPool.java
URL: http://svn.apache.org/viewvc/commons/proper/pool/trunk/src/main/java/org/apache/commons/pool2/impl/GenericObjectPool.java?rev=1329745&r1=1329744&r2=1329745&view=diff
==============================================================================
--- commons/proper/pool/trunk/src/main/java/org/apache/commons/pool2/impl/GenericObjectPool.java (original)
+++ commons/proper/pool/trunk/src/main/java/org/apache/commons/pool2/impl/GenericObjectPool.java Tue Apr 24 14:41:25 2012
@@ -1756,7 +1756,7 @@ public class GenericObjectPool<T> extend
     /**
      * Policy that determines if an object is eligible for eviction or not.
      */
-    private EvictionPolicy<T> evictionPolicy = new DefaultEvictionPolicy<T>();
+    private EvictionPolicy<T> evictionPolicy;
 
     /** Object used to ensure thread safety of eviction process */
     private final Object evictionLock = new Object();