summaryrefslogtreecommitdiff
path: root/src/main/org/apache/tools/ant/types/ZipScanner.java
diff options
context:
space:
mode:
authorPeter Reilly <peterreilly@apache.org>2003-08-13 15:14:31 +0000
committerPeter Reilly <peterreilly@apache.org>2003-08-13 15:14:31 +0000
commitd050f6a18c63fdb1747377e251e66a14b24c3b08 (patch)
tree534ea57a6aa08f2b6d749bca5bc8933ea25f2140 /src/main/org/apache/tools/ant/types/ZipScanner.java
parentfd52619362272fa237c06a6f473744af308a7be4 (diff)
downloadant-d050f6a18c63fdb1747377e251e66a14b24c3b08.tar.gz
remove enum variable
PR: 22336 Obtained from: Robert Stupp, using Jan Mat��rne's checkstyle check git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275076 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/main/org/apache/tools/ant/types/ZipScanner.java')
-rw-r--r--src/main/org/apache/tools/ant/types/ZipScanner.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/org/apache/tools/ant/types/ZipScanner.java b/src/main/org/apache/tools/ant/types/ZipScanner.java
index fa0de815e..a291fed33 100644
--- a/src/main/org/apache/tools/ant/types/ZipScanner.java
+++ b/src/main/org/apache/tools/ant/types/ZipScanner.java
@@ -259,9 +259,9 @@ public class ZipScanner extends DirectoryScanner {
throw new BuildException("problem opening " + srcFile, ex);
}
- Enumeration enum = zf.getEntries();
- while (enum.hasMoreElements()) {
- entry = (ZipEntry) enum.nextElement();
+ Enumeration e = zf.getEntries();
+ while (e.hasMoreElements()) {
+ entry = (ZipEntry) e.nextElement();
myentries.put(new String(entry.getName()),
new Resource(entry.getName(), true,
entry.getTime(),