commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scolebou...@apache.org
Subject cvs commit: jakarta-commons/collections/src/java/org/apache/commons/collections CollectionUtils.java
Date Sat, 12 Oct 2002 21:59:45 GMT
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:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message