commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1021561 - /commons/proper/pool/trunk/src/java/org/apache/commons/pool/PoolUtils.java
Date Tue, 12 Oct 2010 01:03:48 GMT
Author: sebb
Date: Tue Oct 12 01:03:48 2010
New Revision: 1021561

URL: http://svn.apache.org/viewvc?rev=1021561&view=rev
Log:
Unnecessary cast

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

Modified: commons/proper/pool/trunk/src/java/org/apache/commons/pool/PoolUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/pool/trunk/src/java/org/apache/commons/pool/PoolUtils.java?rev=1021561&r1=1021560&r2=1021561&view=diff
==============================================================================
--- commons/proper/pool/trunk/src/java/org/apache/commons/pool/PoolUtils.java (original)
+++ commons/proper/pool/trunk/src/java/org/apache/commons/pool/PoolUtils.java Tue Oct 12 01:03:48
2010
@@ -2406,7 +2406,7 @@ public final class PoolUtils {
          */
         @Override
         protected ErodingFactor getErodingFactor(final K key) {
-            ErodingFactor factor = (ErodingFactor)factors.get(key);
+            ErodingFactor factor = 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) {



Mime
View raw message