Change enum to enumeration for JDK1.5 compliance

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131674 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Stephen Colebourne 2004-04-21 20:34:12 +00:00
parent 491e48297b
commit 14e6c1795c
2 changed files with 8 additions and 8 deletions

View File

@ -67,7 +67,7 @@ import org.apache.commons.collections.map.UnmodifiableSortedMap;
* </ul>
*
* @since Commons Collections 1.0
* @version $Revision: 1.45 $ $Date: 2004/04/01 20:12:00 $
* @version $Revision: 1.46 $ $Date: 2004/04/21 20:34:11 $
*
* @author <a href="mailto:jstrachan@apache.org">James Strachan</a>
* @author <a href="mailto:nissim@nksystems.com">Nissim Karpenstein</a>
@ -865,11 +865,11 @@ public class MapUtils {
* @throws NullPointerException if the bundle is null
*/
public static Map toMap(final ResourceBundle resourceBundle) {
Enumeration enum = resourceBundle.getKeys();
Enumeration enumeration = resourceBundle.getKeys();
Map map = new HashMap();
while (enum.hasMoreElements()) {
String key = (String) enum.nextElement();
while (enumeration.hasMoreElements()) {
String key = (String) enumeration.nextElement();
Object value = resourceBundle.getObject(key);
map.put(key, value);
}

View File

@ -24,7 +24,7 @@ import java.util.Iterator;
* to be {@link Iterator Iterator} instances.
*
* @since Commons Collections 1.0
* @version $Revision: 1.7 $ $Date: 2004/02/18 00:59:50 $
* @version $Revision: 1.8 $ $Date: 2004/04/21 20:34:12 $
*
* @author <a href="mailto:jstrachan@apache.org">James Strachan</a>
* @author <a href="mailto:dlr@finemaltcoding.com">Daniel Rall</a>
@ -62,12 +62,12 @@ public class EnumerationIterator implements Iterator {
* Constructs a new <code>EnumerationIterator</code> that will remove
* elements from the specified collection.
*
* @param enum the enumeration to use
* @param enumeration the enumeration to use
* @param collection the collection to remove elements form
*/
public EnumerationIterator(final Enumeration enum, final Collection collection) {
public EnumerationIterator(final Enumeration enumeration, final Collection collection) {
super();
this.enumeration = enum;
this.enumeration = enumeration;
this.collection = collection;
this.last = null;
}