Browse Source

Rename some enums ...

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275058 13f79535-47bb-0310-9956-ffa450edef68
master
Conor MacNeill 22 years ago
parent
commit
5d4f445f37
2 changed files with 6 additions and 6 deletions
  1. +3
    -3
      src/main/org/apache/tools/ant/AntClassLoader.java
  2. +3
    -3
      src/main/org/apache/tools/ant/ComponentHelper.java

+ 3
- 3
src/main/org/apache/tools/ant/AntClassLoader.java View File

@@ -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();
}


+ 3
- 3
src/main/org/apache/tools/ant/ComponentHelper.java View File

@@ -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) {


Loading…
Cancel
Save