From a0425478d68316e9928914a8f08021cc9987ae63 Mon Sep 17 00:00:00 2001 From: "ray.j.greenwell" Date: Thu, 19 Nov 2009 23:39:49 +0000 Subject: [PATCH] Ok, let's specify it the other way around, per feedback from Michael Thomas. git-svn-id: https://samskivert.googlecode.com/svn/trunk@2647 6335cc39-0255-0410-8fd6-9bcaacd3b74c --- src/java/com/samskivert/util/CollectionUtil.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); } }