From 0a21417853c7600a5d94f2f67d03d48931bbae98 Mon Sep 17 00:00:00 2001 From: Peter Reilly Date: Mon, 14 Mar 2005 09:14:56 +0000 Subject: [PATCH] allow ant to compile with ant 1.5 again. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277917 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/util/CollectionUtils.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/org/apache/tools/ant/util/CollectionUtils.java b/src/main/org/apache/tools/ant/util/CollectionUtils.java index a575da37d..01c13b552 100644 --- a/src/main/org/apache/tools/ant/util/CollectionUtils.java +++ b/src/main/org/apache/tools/ant/util/CollectionUtils.java @@ -158,16 +158,16 @@ public class CollectionUtils { /** * Adapt the specified Enumeration to the Iterator interface. - * @param enum the Enumeration to adapt. + * @param e the Enumeration to adapt. * @return an Iterator. */ - public static Iterator asIterator(final Enumeration enum) { + public static Iterator asIterator(final Enumeration e) { return new Iterator() { public boolean hasNext() { - return enum.hasMoreElements(); + return e.hasMoreElements(); } public Object next() { - return enum.nextElement(); + return e.nextElement(); } public void remove() { throw new UnsupportedOperationException();