You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Michael Smith <mi...@iammichael.org> on 2002/02/01 07:06:56 UTC

[collections][PATCH] Doc error in Bag

Documentation error in org/apache/commons/collections/Bag.java

"If the bag contains less than i occurences, the item itwm will be
removed from the unique set" implies that if the bag contains 5
occurences and i is 5, (5 is not less than 5) then the item will not be
removed from the unique set, even though there should be no more
occurances in the bag.

regards,
Michael


Index:
D:/home/michael/dev/jakarta/jakarta-commons/collections/src/java/org/apa
che/commons/collections/Bag.java
===================================================================
RCS file:
/home/cvspublic/jakarta-commons/collections/src/java/org/apache/commons/
collections/Bag.java,v
retrieving revision 1.1
diff -u -r1.1 Bag.java
---
D:/home/michael/dev/jakarta/jakarta-commons/collections/src/java/org/apa
che/commons/collections/Bag.java	29 Aug 2001 15:28:07 -0000	1.1
+++
D:/home/michael/dev/jakarta/jakarta-commons/collections/src/java/org/apa
che/commons/collections/Bag.java	1 Feb 2002 05:49:39 -0000
@@ -113,7 +113,7 @@

    /**
     * Remove the given number of occurrences from the bag. If the bag
-    * contains less than <code>i</code> occurrences, the item will be
+    * contains <code>i</code> occurrences or less, the item will be
     * removed from the {@link #uniqueSet}.
     * @see #getCount
     * @see #remove(Object)