commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1537355 - /commons/proper/pool/trunk/src/main/java/org/apache/commons/pool2/PoolUtils.java
Date Thu, 31 Oct 2013 00:17:01 GMT
Author: sebb
Date: Thu Oct 31 00:17:00 2013
New Revision: 1537355

URL: http://svn.apache.org/r1537355
Log:
Avoid data hiding

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

Modified: commons/proper/pool/trunk/src/main/java/org/apache/commons/pool2/PoolUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/pool/trunk/src/main/java/org/apache/commons/pool2/PoolUtils.java?rev=1537355&r1=1537354&r2=1537355&view=diff
==============================================================================
--- commons/proper/pool/trunk/src/main/java/org/apache/commons/pool2/PoolUtils.java (original)
+++ commons/proper/pool/trunk/src/main/java/org/apache/commons/pool2/PoolUtils.java Thu Oct
31 00:17:00 2013
@@ -1784,14 +1784,14 @@ public final class PoolUtils {
          */
         @Override
         protected ErodingFactor getErodingFactor(final K key) {
-            ErodingFactor factor = factors.get(key);
+            ErodingFactor eFactor = factors.get(key);
             // this may result in two ErodingFactors being created for a key
             // since they are small and cheap this is okay.
-            if (factor == null) {
-                factor = new ErodingFactor(this.factor);
-                factors.put(key, factor);
+            if (eFactor == null) {
+                eFactor = new ErodingFactor(this.factor);
+                factors.put(key, eFactor);
             }
-            return factor;
+            return eFactor;
         }
 
         /**



Mime
View raw message