From 5d4f445f37f39465ca8d550e57c8d80e61495af0 Mon Sep 17 00:00:00 2001 From: Conor MacNeill Date: Tue, 12 Aug 2003 15:15:06 +0000 Subject: [PATCH] Rename some enums ... git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275058 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/AntClassLoader.java | 6 +++--- src/main/org/apache/tools/ant/ComponentHelper.java | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/org/apache/tools/ant/AntClassLoader.java b/src/main/org/apache/tools/ant/AntClassLoader.java index b4805b4b4..dd25e7dbf 100644 --- a/src/main/org/apache/tools/ant/AntClassLoader.java +++ b/src/main/org/apache/tools/ant/AntClassLoader.java @@ -509,14 +509,14 @@ public class AntClassLoader extends ClassLoader implements BuildListener { public String getClasspath() { StringBuffer sb = new StringBuffer(); boolean firstPass = true; - Enumeration enum = pathComponents.elements(); - while (enum.hasMoreElements()) { + Enumeration componentEnum = pathComponents.elements(); + while (componentEnum.hasMoreElements()) { if (!firstPass) { sb.append(System.getProperty("path.separator")); } else { firstPass = false; } - sb.append(((File) enum.nextElement()).getAbsolutePath()); + sb.append(((File) componentEnum.nextElement()).getAbsolutePath()); } return sb.toString(); } diff --git a/src/main/org/apache/tools/ant/ComponentHelper.java b/src/main/org/apache/tools/ant/ComponentHelper.java index a8032e1a2..820e45a97 100644 --- a/src/main/org/apache/tools/ant/ComponentHelper.java +++ b/src/main/org/apache/tools/ant/ComponentHelper.java @@ -528,10 +528,10 @@ public class ComponentHelper { synchronized (createdTasks) { Vector v = (Vector) createdTasks.get(type); if (v != null) { - Enumeration enum = v.elements(); - while (enum.hasMoreElements()) { + Enumeration taskEnum = v.elements(); + while (taskEnum.hasMoreElements()) { WeakishReference ref = - (WeakishReference) enum.nextElement(); + (WeakishReference) taskEnum.nextElement(); Task t = (Task) ref.get(); //being a weak ref, it may be null by this point if (t != null) {