aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorAndy Clement <aclement@vmware.com>2012-02-29 15:07:41 -0800
committerAndy Clement <aclement@vmware.com>2012-02-29 15:07:41 -0800
commitac0d0829758c207077cdc737c80277dd9c17b489 (patch)
tree4a8af93627be173ccb2b1650a7a1f13f28c2a16d /testing
parentb5835864bd821f0069797118cac017e39e893118 (diff)
downloadaspectj-ac0d0829758c207077cdc737c80277dd9c17b489.tar.gz
aspectj-ac0d0829758c207077cdc737c80277dd9c17b489.zip
generics
Diffstat (limited to 'testing')
-rw-r--r--testing/testsrc/org/aspectj/testing/xml/AjcSpecXmlReaderTest.java18
1 files changed, 9 insertions, 9 deletions
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<File> tempFiles = new ArrayList<File>();
/**
* 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<File> 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<File> toDelete = new ArrayList<File>();
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<File> 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<File> toDelete = new ArrayList<File>();
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<File> iter = toDelete.iterator(); iter.hasNext();) {
+ iter.next().delete();
}
}
}