commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Smith" <mich...@iammichael.org>
Subject [collections][PATCH] Doc error in Bag
Date Fri, 01 Feb 2002 06:06:56 GMT
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)

Mime
View raw message