From babbe098f8dc329846a09591f34c77559b8beb3d Mon Sep 17 00:00:00 2001 From: Stephen Colebourne Date: Sat, 17 Aug 2002 11:38:35 +0000 Subject: [PATCH] Deprecate getIterator git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130785 13f79535-47bb-0310-9956-ffa450edef68 --- .../commons/collections/CollectionUtils.java | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/src/java/org/apache/commons/collections/CollectionUtils.java b/src/java/org/apache/commons/collections/CollectionUtils.java index a35ac51a3..bf408a7e3 100644 --- a/src/java/org/apache/commons/collections/CollectionUtils.java +++ b/src/java/org/apache/commons/collections/CollectionUtils.java @@ -1,7 +1,7 @@ /* - * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/CollectionUtils.java,v 1.11 2002/08/15 20:04:31 pjack Exp $ - * $Revision: 1.11 $ - * $Date: 2002/08/15 20:04:31 $ + * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/CollectionUtils.java,v 1.12 2002/08/17 11:38:35 scolebourne Exp $ + * $Revision: 1.12 $ + * $Date: 2002/08/17 11:38:35 $ * * ==================================================================== * @@ -72,13 +72,16 @@ import java.util.Map; import java.util.NoSuchElementException; import java.util.Set; +import org.apache.commons.collections.iterators.ArrayIterator; +import org.apache.commons.collections.iterators.EnumerationIterator; + /** * A set of {@link Collection} related utility methods. * * @author Rodney Waldhoff * * @since 1.0 - * @version $Id: CollectionUtils.java,v 1.11 2002/08/15 20:04:31 pjack Exp $ + * @version $Id: CollectionUtils.java,v 1.12 2002/08/17 11:38:35 scolebourne Exp $ */ public class CollectionUtils { @@ -510,8 +513,12 @@ public class CollectionUtils { return iterator; } - /** Returns an Iterator for the given object. Currently this method can handle - * Iterator, Enumeration, Collection, Map, Object[] or array */ + /** + * Returns an Iterator for the given object. Currently this method can handle + * Iterator, Enumeration, Collection, Map, Object[] or array. + * + * @deprecated use IteratorUtils version instead + */ public static Iterator getIterator(Object obj) { if(obj instanceof Iterator) { return (Iterator)obj;