diff --git a/src/main/java/org/apache/commons/collections4/Bag.java b/src/main/java/org/apache/commons/collections4/Bag.java index 5b8c14842..11a7e4a65 100644 --- a/src/main/java/org/apache/commons/collections4/Bag.java +++ b/src/main/java/org/apache/commons/collections4/Bag.java @@ -56,7 +56,7 @@ public interface Bag extends Collection { /** * (Violation) - * Adds one copy the specified object to the Bag. + * Adds one copy of the specified object to the Bag. *

* If the object is already in the {@link #uniqueSet()} then increment its * count as reported by {@link #getCount(Object)}. Otherwise add it to the diff --git a/src/main/java/org/apache/commons/collections4/bag/TreeBag.java b/src/main/java/org/apache/commons/collections4/bag/TreeBag.java index 4d9c3276f..185bb83f6 100644 --- a/src/main/java/org/apache/commons/collections4/bag/TreeBag.java +++ b/src/main/java/org/apache/commons/collections4/bag/TreeBag.java @@ -28,17 +28,15 @@ import java.util.TreeMap; import org.apache.commons.collections4.SortedBag; /** - * Implements {@link SortedBag}, using a {@link TreeMap} to provide - * the data storage. This is the standard implementation of a sorted bag. + * Implements {@link SortedBag}, using a {@link TreeMap} to provide the data storage. + * This is the standard implementation of a sorted bag. *

- * Order will be maintained among the bag members and can be viewed through the - * iterator. + * Order will be maintained among the bag members and can be viewed through the iterator. *

- * A {@link org.apache.commons.collections4.Bag Bag} stores each object in the collection together with a count - * of occurrences. Extra methods on the interface allow multiple copies of an - * object to be added or removed at once. It is important to read the interface - * javadoc carefully as several methods violate the {@link Collection} - * interface specification. + * A {@link org.apache.commons.collections4.Bag Bag} stores each object in the collection + * together with a count of occurrences. Extra methods on the interface allow multiple + * copies of an object to be added or removed at once. It is important to read the interface + * javadoc carefully as several methods violate the {@link Collection} interface specification. * * @since 3.0 (previously in main package v2.0) * @version $Id$