From: Andy Clement Date: Wed, 29 Feb 2012 23:07:41 +0000 (-0800) Subject: generics X-Git-Tag: V1_7_0RC1~38 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ac0d0829758c207077cdc737c80277dd9c17b489;p=aspectj.git generics --- diff --git a/testing/testsrc/org/aspectj/testing/xml/AjcSpecXmlReaderTest.java b/testing/testsrc/org/aspectj/testing/xml/AjcSpecXmlReaderTest.java index d1285b37c..bff18c024 100644 --- a/testing/testsrc/org/aspectj/testing/xml/AjcSpecXmlReaderTest.java +++ b/testing/testsrc/org/aspectj/testing/xml/AjcSpecXmlReaderTest.java @@ -35,7 +35,7 @@ import org.aspectj.util.LangUtil; */ public class AjcSpecXmlReaderTest extends TestCase { - ArrayList tempFiles = new ArrayList(); + ArrayList tempFiles = new ArrayList(); /** * Constructor for AjcSpecXmlReaderTest. * @param name @@ -51,7 +51,7 @@ public class AjcSpecXmlReaderTest extends TestCase { public void tearDown() { if (!LangUtil.isEmpty(tempFiles)) { - for (Iterator iter = tempFiles.iterator(); iter.hasNext();) { + for (Iterator iter = tempFiles.iterator(); iter.hasNext();) { File file = (File) iter.next(); if (file.canRead()) { file.delete(); @@ -67,7 +67,7 @@ public class AjcSpecXmlReaderTest extends TestCase { = AjcSpecXmlReader.expectedProperties(); PropertyDescriptor[] des; for (int i = 0; i < expected.length; i++) { - Class clazz = expected[i].cl; + Class clazz = expected[i].cl; BeanInfo beanInfo = Introspector.getBeanInfo(clazz); assertTrue(null != beanInfo); des = beanInfo.getPropertyDescriptors(); @@ -112,7 +112,7 @@ public class AjcSpecXmlReaderTest extends TestCase { String xml2Path = path + ".tmp.xml"; final File file1 = new File(xmlPath); - final ArrayList toDelete = new ArrayList(); + final ArrayList toDelete = new ArrayList(); final AjcSpecXmlReader writer = AjcSpecXmlReader.getReader(); assertTrue("" + file1, file1.canRead()); @@ -140,8 +140,8 @@ public class AjcSpecXmlReaderTest extends TestCase { assertTrue("CloneNotSupportedException: " + e.getMessage(), false); } - for (Iterator iter = toDelete.iterator(); iter.hasNext();) { - ((File) iter.next()).delete(); + for (Iterator iter = toDelete.iterator(); iter.hasNext();) { + iter.next().delete(); } } @@ -155,7 +155,7 @@ public class AjcSpecXmlReaderTest extends TestCase { AjcSpecXmlReader writer = AjcSpecXmlReader.getReader(); File file0 = new File(txtPath); File file1 = new File(xmlPath); - ArrayList toDelete = new ArrayList(); + ArrayList toDelete = new ArrayList(); AjcTest.Suite.Spec suite0 = null; if (file0.canRead()) { System.out.println("reading " + file0); @@ -200,8 +200,8 @@ public class AjcSpecXmlReaderTest extends TestCase { AjcSpecTest.sameAjcSuiteSpec(suite1, suite2, this); AjcSpecTest.sameAjcSuiteSpec(suite0, suite2, this); - for (Iterator iter = toDelete.iterator(); iter.hasNext();) { - ((File) iter.next()).delete(); + for (Iterator iter = toDelete.iterator(); iter.hasNext();) { + iter.next().delete(); } } }