You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by rw...@apache.org on 2003/01/06 04:56:21 UTC

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

rwaldhoff    2003/01/05 19:56:21

  Modified:    collections/src/java/org/apache/commons/collections/primitives
                        IntCollectionCollection.java
  Log:
  oops, retainAll should delegate to retainAll, not removeAll
  
  Revision  Changes    Path
  1.2       +4 -4      jakarta-commons/collections/src/java/org/apache/commons/collections/primitives/IntCollectionCollection.java
  
  Index: IntCollectionCollection.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/primitives/IntCollectionCollection.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- IntCollectionCollection.java	5 Jan 2003 03:03:42 -0000	1.1
  +++ IntCollectionCollection.java	6 Jan 2003 03:56:21 -0000	1.2
  @@ -124,7 +124,7 @@
       }
       
       public boolean retainAll(Collection c) {
  -        return _collection.removeAll(CollectionIntCollection.wrap(c));
  +        return _collection.retainAll(CollectionIntCollection.wrap(c));
       }
       
       public int size() {
  
  
  

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