diff --git a/src/java/com/samskivert/util/CollectionUtil.java b/src/java/com/samskivert/util/CollectionUtil.java index 3589eaa5..205230e4 100644 --- a/src/java/com/samskivert/util/CollectionUtil.java +++ b/src/java/com/samskivert/util/CollectionUtil.java @@ -37,7 +37,7 @@ public class CollectionUtil * Adds all items returned by the enumeration to the supplied collection * and returns the supplied collection. */ - public static Collection addAll (Collection col, Enumeration enm) + public static Collection addAll (Collection col, Enumeration enm) { while (enm.hasMoreElements()) { col.add(enm.nextElement()); @@ -49,7 +49,7 @@ public class CollectionUtil * Adds all items returned by the iterator to the supplied collection and * returns the supplied collection. */ - public static Collection addAll (Collection col, Iterator iter) + public static Collection addAll (Collection col, Iterator iter) { while (iter.hasNext()) { col.add(iter.next()); @@ -62,10 +62,10 @@ public class CollectionUtil * returns the supplied collection. If the supplied array is null, nothing * is added to the collection. */ - public static Collection addAll (Collection col, T[] values) + public static Collection addAll (Collection col, E[] values) { if (values != null) { - for (T value : values) { + for (E value : values) { col.add(value); } }