Author: sebb
Date: Tue Oct 12 01:51:17 2010
New Revision: 1021590

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

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

Modified: 
commons/proper/pool/trunk/src/test/org/apache/commons/pool/TestPoolUtils.java
URL: 
http://svn.apache.org/viewvc/commons/proper/pool/trunk/src/test/org/apache/commons/pool/TestPoolUtils.java?rev=1021590&r1=1021589&r2=1021590&view=diff
==============================================================================
--- 
commons/proper/pool/trunk/src/test/org/apache/commons/pool/TestPoolUtils.java 
(original)
+++ 
commons/proper/pool/trunk/src/test/org/apache/commons/pool/TestPoolUtils.java 
Tue Oct 12 01:51:17 2010
@@ -289,7 +289,7 @@ public class TestPoolUtils extends TestC
         int makeObjectCount = 0;
         final Iterator<String> iter = calledMethods.iterator();
         while (iter.hasNext()) {
-            final String methodName = (String)iter.next();
+            final String methodName = iter.next();
             if ("makeObject".equals(methodName)) {
                 makeObjectCount++;
             }
@@ -424,7 +424,7 @@ public class TestPoolUtils extends TestC
                 Thread.sleep(CHECK_SLEEP_PERIOD); // will check CHECK_COUNT 
more times.
                 final Iterator<TimerTask> iter = tasks.values().iterator();
                 while (iter.hasNext()) {
-                    final TimerTask task = (TimerTask)iter.next();
+                    final TimerTask task = iter.next();
                     task.cancel();
                 }
 


Reply via email to