From 3f22cc8398ed70465088649ff852a5e998296e8e Mon Sep 17 00:00:00 2001 From: Stephen Colebourne Date: Sat, 12 Oct 2002 21:59:45 +0000 Subject: [PATCH] Removed unused variable (patch from Steve Downey) git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130814 13f79535-47bb-0310-9956-ffa450edef68 --- .../commons/collections/CollectionUtils.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/java/org/apache/commons/collections/CollectionUtils.java b/src/java/org/apache/commons/collections/CollectionUtils.java index 51fc73680..52eb6dd0b 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.16 2002/09/07 19:49:49 rwaldhoff Exp $ - * $Revision: 1.16 $ - * $Date: 2002/09/07 19:49:49 $ + * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/CollectionUtils.java,v 1.17 2002/10/12 21:59:45 scolebourne Exp $ + * $Revision: 1.17 $ + * $Date: 2002/10/12 21:59:45 $ * * ==================================================================== * @@ -82,8 +82,9 @@ import org.apache.commons.collections.iterators.EnumerationIterator; * @since 1.0 * @author Rodney Waldhoff * @author Paul Jack - * @author Stephen Colebourne - * @version $Revision: 1.16 $ $Date: 2002/09/07 19:49:49 $ + * @author Stephen Colebourne + * @author Steve Downey + * @version $Revision: 1.17 $ $Date: 2002/10/12 21:59:45 $ */ public class CollectionUtils { @@ -255,13 +256,12 @@ public class CollectionUtils { * @see Collection#containsAll */ public static boolean isSubCollection(final Collection a, final Collection b) { - ArrayList list = new ArrayList(); Map mapa = getCardinalityMap(a); Map mapb = getCardinalityMap(b); Iterator it = a.iterator(); - while(it.hasNext()) { + while (it.hasNext()) { Object obj = it.next(); - if(getFreq(obj,mapa) > getFreq(obj,mapb)) { + if (getFreq(obj, mapa) > getFreq(obj, mapb)) { return false; } }