]> source.dussan.org Git - aspectj.git/commitdiff
Matthew fix for 83380: don't use enum as a variable name.
authoraclement <aclement>
Mon, 24 Jan 2005 14:33:05 +0000 (14:33 +0000)
committeraclement <aclement>
Mon, 24 Jan 2005 14:33:05 +0000 (14:33 +0000)
bridge/src/org/aspectj/bridge/CountingMessageHandler.java
build/src/org/aspectj/internal/tools/ant/taskdefs/Checklics.java
testing/src/org/aspectj/testing/util/FileUtil.java

index 6c05253ee856cc370df121c408056167910456ce..3cdd7d482f282ff5f3932dc8a217a17c94c3ed91 100644 (file)
@@ -87,8 +87,8 @@ public class CountingMessageHandler implements IMessageHandler {
         }
         int result = 0;
         if (null == kind) {            
-            for (Enumeration enum = counters.elements(); enum.hasMoreElements();) {
-                               result += ((IntHolder) enum.nextElement()).count;                               
+            for (Enumeration enu = counters.elements(); enu.hasMoreElements();) {
+                               result += ((IntHolder) enu.nextElement()).count;                                
                        }
         } else if (!orGreater) {
             result = numMessages(kind);
index d24b796577815e4827625e6c6552a4b564bddbfa..1d4528a6c4fc663bfd10d57de6e7ed8e6d6dffea 100644 (file)
@@ -376,12 +376,12 @@ public class Checklics extends MatchingTask {
 //     }
 
        private void list() {
-               Enumeration enum = LICENSES.keys();
+               Enumeration enu = LICENSES.keys();
                StringBuffer sb = new StringBuffer();
                sb.append("known license keys:");
                boolean first = true;
-               while (enum.hasMoreElements()) {
-                       sb.append((first ? " " : ", ") + enum.nextElement());
+               while (enu.hasMoreElements()) {
+                       sb.append((first ? " " : ", ") + enu.nextElement());
                        if (first) {
                                first = false;
                        }
index b68d7f8b2607fe0bf5e970dd5b81c6e5e6c44292..543da5801fcaf86f7e4258d984cbd869e9505d8c 100644 (file)
@@ -217,9 +217,9 @@ public class FileUtil {
         if (null == visitor) throw new IllegalArgumentException("null visitor");
         int index = 0;
         try {
-            Enumeration enum = zipfile.entries();
-            while (enum.hasMoreElements()) {
-                ZipEntry entry = (ZipEntry) enum.nextElement();
+            Enumeration enu = zipfile.entries();
+            while (enu.hasMoreElements()) {
+                ZipEntry entry = (ZipEntry) enu.nextElement();
                 index++;
                 if (! visitor.accept(entry.getName())) {
                     break;
@@ -366,9 +366,9 @@ public class FileUtil {
         ZipFile zip = null;
         try {
             zip = new ZipFile(zipfile); // ZipFile.OPEN_READ| ZipFile.OPEN_DELETE); delete is 1.3 only
-            Enumeration enum = zip.entries();
-            while (enum.hasMoreElements()) {
-                results.add(renderZipEntry(zipfile, (ZipEntry) enum.nextElement()));
+            Enumeration enu = zip.entries();
+            while (enu.hasMoreElements()) {
+                results.add(renderZipEntry(zipfile, (ZipEntry) enu.nextElement()));
             }
             zip.close();
             zip = null;