}
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);
// }
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;
}
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;
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;