Browse Source

some more variables named enum

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275866 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 21 years ago
parent
commit
1a3ed5bfc3
2 changed files with 11 additions and 11 deletions
  1. +7
    -7
      src/testcases/org/apache/tools/ant/IntrospectionHelperTest.java
  2. +4
    -4
      src/testcases/org/apache/tools/ant/taskdefs/JarTest.java

+ 7
- 7
src/testcases/org/apache/tools/ant/IntrospectionHelperTest.java View File

@@ -1,7 +1,7 @@
/* /*
* The Apache Software License, Version 1.1 * 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. * reserved.
* *
* Redistribution and use in source and binary forms, with or without * 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("fourteen", java.lang.StringBuffer.class);
h.put("fifteen", java.lang.StringBuffer.class); h.put("fifteen", java.lang.StringBuffer.class);
IntrospectionHelper ih = IntrospectionHelper.getHelper(getClass()); 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); Class expect = (Class) h.get(name);
assertNotNull("Support for "+name+" in IntrospectioNHelperTest?", assertNotNull("Support for "+name+" in IntrospectioNHelperTest?",
expect); expect);
@@ -408,9 +408,9 @@ public class IntrospectionHelperTest extends TestCase {
h.put("name", java.lang.String.class); h.put("name", java.lang.String.class);


IntrospectionHelper ih = IntrospectionHelper.getHelper(getClass()); 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); Class expect = (Class) h.get(name);
assertNotNull("Support for "+name+" in IntrospectionHelperTest?", assertNotNull("Support for "+name+" in IntrospectionHelperTest?",
expect); expect);


+ 4
- 4
src/testcases/org/apache/tools/ant/taskdefs/JarTest.java View File

@@ -1,7 +1,7 @@
/* /*
* The Apache Software License, Version 1.1 * 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. * reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
@@ -244,10 +244,10 @@ public class JarTest extends BuildFileTest {
try { try {
executeTarget("testIndexTests"); executeTarget("testIndexTests");
archive = new ZipFile(getProject().resolveFile(tempJar)); archive = new ZipFile(getProject().resolveFile(tempJar));
Enumeration enum = archive.entries();
Enumeration e = archive.entries();
int numberOfIndexLists = 0; 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")) { if (ze.getName().equals("META-INF/INDEX.LIST")) {
numberOfIndexLists++; numberOfIndexLists++;
} }


Loading…
Cancel
Save