Browse Source

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
master
Peter Reilly 20 years ago
parent
commit
0a21417853
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      src/main/org/apache/tools/ant/util/CollectionUtils.java

+ 4
- 4
src/main/org/apache/tools/ant/util/CollectionUtils.java View File

@@ -158,16 +158,16 @@ public class CollectionUtils {


/** /**
* Adapt the specified Enumeration to the Iterator interface. * Adapt the specified Enumeration to the Iterator interface.
* @param enum the Enumeration to adapt.
* @param e the Enumeration to adapt.
* @return an Iterator. * @return an Iterator.
*/ */
public static Iterator asIterator(final Enumeration enum) {
public static Iterator asIterator(final Enumeration e) {
return new Iterator() { return new Iterator() {
public boolean hasNext() { public boolean hasNext() {
return enum.hasMoreElements();
return e.hasMoreElements();
} }
public Object next() { public Object next() {
return enum.nextElement();
return e.nextElement();
} }
public void remove() { public void remove() {
throw new UnsupportedOperationException(); throw new UnsupportedOperationException();


Loading…
Cancel
Save