]> source.dussan.org Git - aspectj.git/commitdiff
generics
authoraclement <aclement>
Mon, 2 May 2011 18:41:40 +0000 (18:41 +0000)
committeraclement <aclement>
Mon, 2 May 2011 18:41:40 +0000 (18:41 +0000)
testing/newsrc/org/aspectj/testing/AjcTest.java

index 2ddf9184bafddeab527386a5eb621384cd972fe6..4192f9db724e2078feb40f568327874127c0cefd 100644 (file)
@@ -12,7 +12,6 @@
 package org.aspectj.testing;
 
 import java.util.ArrayList;
-import java.util.Iterator;
 import java.util.List;
 
 import org.aspectj.tools.ajc.AjcTestCase;
@@ -44,7 +43,7 @@ public class AjcTest {
                }
        }
 
-       private List testSteps = new ArrayList();
+       private List<ITestStep> testSteps = new ArrayList<ITestStep>();
        
        private String dir;
        private String pr;
@@ -65,8 +64,7 @@ public class AjcTest {
                if (!canRunOnThisVM()) return false;
                try {
                        System.out.print("TEST: " + getTitle() + "\t");                 
-                       for (Iterator iter = testSteps.iterator(); iter.hasNext();) {
-                               ITestStep step = (ITestStep) iter.next();
+                       for (ITestStep step: testSteps) {
                                step.setBaseDir(getDir());
                                System.out.print(".");
                                step.execute(testCase);