Avoid using enum as variable name in order to compile on Java 1.5

This commit is contained in:
hns 2005-03-15 17:35:39 +00:00
parent 71c4482c76
commit 6a29c2b465

View file

@ -91,12 +91,12 @@ public final class ZipRepository extends AbstractRepository {
try { try {
zipfile = getZipFile(); zipfile = getZipFile();
Enumeration enum = zipfile.entries(); Enumeration en = zipfile.entries();
ArrayList newRepositories = new ArrayList(); ArrayList newRepositories = new ArrayList();
HashMap newResources = new HashMap(); HashMap newResources = new HashMap();
while (enum.hasMoreElements()) { while (en.hasMoreElements()) {
ZipEntry entry = (ZipEntry) enum.nextElement(); ZipEntry entry = (ZipEntry) en.nextElement();
String entryname = entry.getName(); String entryname = entry.getName();
String[] entrypath = StringUtils.split(entryname, "/"); String[] entrypath = StringUtils.split(entryname, "/");