You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by sc...@apache.org on 2002/10/12 23:59:45 UTC

cvs commit: jakarta-commons/collections/src/java/org/apache/commons/collections CollectionUtils.java

scolebourne    2002/10/12 14:59:45

  Modified:    collections/src/java/org/apache/commons/collections
                        CollectionUtils.java
  Log:
  Removed unused variable (patch from Steve Downey)
  
  Revision  Changes    Path
  1.17      +8 -8      jakarta-commons/collections/src/java/org/apache/commons/collections/CollectionUtils.java
  
  Index: CollectionUtils.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/CollectionUtils.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- CollectionUtils.java	7 Sep 2002 19:49:49 -0000	1.16
  +++ CollectionUtils.java	12 Oct 2002 21:59:45 -0000	1.17
  @@ -82,7 +82,8 @@
    * @since 1.0
    * @author Rodney Waldhoff
    * @author Paul Jack
  - * @author <a href="mailto:scolebourne@joda.org">Stephen Colebourne</a>
  + * @author Stephen Colebourne
  + * @author Steve Downey
    * @version $Revision$ $Date$
    */
   public class CollectionUtils {
  @@ -255,13 +256,12 @@
        * @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;
               }
           }
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>