ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From co...@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/ant AntClassLoader.java ComponentHelper.java
Date Tue, 12 Aug 2003 15:15:06 GMT
conor       2003/08/12 08:15:06

  Modified:    src/main/org/apache/tools/ant AntClassLoader.java
                        ComponentHelper.java
  Log:
  Rename some enums ...
  
  Revision  Changes    Path
  1.75      +3 -3      ant/src/main/org/apache/tools/ant/AntClassLoader.java
  
  Index: AntClassLoader.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/AntClassLoader.java,v
  retrieving revision 1.74
  retrieving revision 1.75
  diff -u -w -u -r1.74 -r1.75
  --- AntClassLoader.java	25 Jul 2003 18:40:53 -0000	1.74
  +++ AntClassLoader.java	12 Aug 2003 15:15:06 -0000	1.75
  @@ -509,14 +509,14 @@
       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();
       }
  
  
  
  1.20      +3 -3      ant/src/main/org/apache/tools/ant/ComponentHelper.java
  
  Index: ComponentHelper.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/ComponentHelper.java,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -w -u -r1.19 -r1.20
  --- ComponentHelper.java	21 Jul 2003 10:10:06 -0000	1.19
  +++ ComponentHelper.java	12 Aug 2003 15:15:06 -0000	1.20
  @@ -528,10 +528,10 @@
           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) {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message