diff --git a/src/testcases/org/apache/tools/ant/IntrospectionHelperTest.java b/src/testcases/org/apache/tools/ant/IntrospectionHelperTest.java index 66c25ab77..37190f504 100644 --- a/src/testcases/org/apache/tools/ant/IntrospectionHelperTest.java +++ b/src/testcases/org/apache/tools/ant/IntrospectionHelperTest.java @@ -1,7 +1,7 @@ /* * The Apache Software License, Version 1.1 * - * Copyright (c) 2000-2001,2003 The Apache Software Foundation. All rights + * Copyright (c) 2000-2001,2003-2004 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without @@ -195,9 +195,9 @@ public class IntrospectionHelperTest extends TestCase { h.put("fourteen", java.lang.StringBuffer.class); h.put("fifteen", java.lang.StringBuffer.class); IntrospectionHelper ih = IntrospectionHelper.getHelper(getClass()); - Enumeration enum = ih.getNestedElements(); - while (enum.hasMoreElements()) { - String name = (String) enum.nextElement(); + Enumeration e = ih.getNestedElements(); + while (e.hasMoreElements()) { + String name = (String) e.nextElement(); Class expect = (Class) h.get(name); assertNotNull("Support for "+name+" in IntrospectioNHelperTest?", expect); @@ -408,9 +408,9 @@ public class IntrospectionHelperTest extends TestCase { h.put("name", java.lang.String.class); IntrospectionHelper ih = IntrospectionHelper.getHelper(getClass()); - Enumeration enum = ih.getAttributes(); - while (enum.hasMoreElements()) { - String name = (String) enum.nextElement(); + Enumeration e = ih.getAttributes(); + while (e.hasMoreElements()) { + String name = (String) e.nextElement(); Class expect = (Class) h.get(name); assertNotNull("Support for "+name+" in IntrospectionHelperTest?", expect); diff --git a/src/testcases/org/apache/tools/ant/taskdefs/JarTest.java b/src/testcases/org/apache/tools/ant/taskdefs/JarTest.java index f101ac521..f81ff5f6b 100644 --- a/src/testcases/org/apache/tools/ant/taskdefs/JarTest.java +++ b/src/testcases/org/apache/tools/ant/taskdefs/JarTest.java @@ -1,7 +1,7 @@ /* * The Apache Software License, Version 1.1 * - * Copyright (c) 2000-2003 The Apache Software Foundation. All rights + * Copyright (c) 2000-2004 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without @@ -244,10 +244,10 @@ public class JarTest extends BuildFileTest { try { executeTarget("testIndexTests"); archive = new ZipFile(getProject().resolveFile(tempJar)); - Enumeration enum = archive.entries(); + Enumeration e = archive.entries(); int numberOfIndexLists = 0; - while (enum.hasMoreElements()) { - ZipEntry ze = (ZipEntry) enum.nextElement(); + while (e.hasMoreElements()) { + ZipEntry ze = (ZipEntry) e.nextElement(); if (ze.getName().equals("META-INF/INDEX.LIST")) { numberOfIndexLists++; }