From 7d9196da0ef3889ca60a5dd90e9b9eea77bdb01b Mon Sep 17 00:00:00 2001 From: Thomas Neidhart Date: Tue, 30 Apr 2013 18:21:52 +0000 Subject: [PATCH] Remove trailing spaces. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1477752 13f79535-47bb-0310-9956-ffa450edef68 --- .../bag/AbstractBagDecorator.java | 6 +- .../collections4/bag/AbstractMapBag.java | 59 +++++++++---------- .../bag/AbstractSortedBagDecorator.java | 6 +- .../commons/collections4/bag/HashBag.java | 6 +- .../collections4/bag/PredicatedBag.java | 10 ++-- .../collections4/bag/PredicatedSortedBag.java | 10 ++-- .../collections4/bag/SynchronizedBag.java | 16 ++--- .../bag/SynchronizedSortedBag.java | 14 ++--- .../collections4/bag/TransformedBag.java | 14 ++--- .../bag/TransformedSortedBag.java | 12 ++-- .../commons/collections4/bag/TreeBag.java | 10 ++-- .../collections4/bag/UnmodifiableBag.java | 10 ++-- .../bag/UnmodifiableSortedBag.java | 10 ++-- .../collections4/bag/package-info.java | 2 +- 14 files changed, 91 insertions(+), 94 deletions(-) diff --git a/src/main/java/org/apache/commons/collections4/bag/AbstractBagDecorator.java b/src/main/java/org/apache/commons/collections4/bag/AbstractBagDecorator.java index a81a5b400..b01d44ee6 100644 --- a/src/main/java/org/apache/commons/collections4/bag/AbstractBagDecorator.java +++ b/src/main/java/org/apache/commons/collections4/bag/AbstractBagDecorator.java @@ -45,7 +45,7 @@ public abstract class AbstractBagDecorator /** * Constructor that wraps (not copies). - * + * * @param bag the bag to decorate, must not be null * @throws IllegalArgumentException if list is null */ @@ -55,7 +55,7 @@ public abstract class AbstractBagDecorator /** * Gets the bag being decorated. - * + * * @return the decorated bag */ @Override @@ -64,7 +64,7 @@ public abstract class AbstractBagDecorator } //----------------------------------------------------------------------- - + public int getCount(final Object object) { return decorated().getCount(object); } diff --git a/src/main/java/org/apache/commons/collections4/bag/AbstractMapBag.java b/src/main/java/org/apache/commons/collections4/bag/AbstractMapBag.java index ef10ed74b..6c85c8af9 100644 --- a/src/main/java/org/apache/commons/collections4/bag/AbstractMapBag.java +++ b/src/main/java/org/apache/commons/collections4/bag/AbstractMapBag.java @@ -62,7 +62,7 @@ public abstract class AbstractMapBag implements Bag { /** * Constructor that assigns the specified Map as the backing store. The map * must be empty and non-null. - * + * * @param map the map to assign */ protected AbstractMapBag(final Map map) { @@ -73,7 +73,7 @@ public abstract class AbstractMapBag implements Bag { /** * Utility method for implementations to access the map that backs this bag. * Not intended for interactive use outside of subclasses. - * + * * @return the map being used by the Bag */ protected Map getMap() { @@ -83,7 +83,7 @@ public abstract class AbstractMapBag implements Bag { //----------------------------------------------------------------------- /** * Returns the number of elements in this bag. - * + * * @return current size of the bag */ public int size() { @@ -92,7 +92,7 @@ public abstract class AbstractMapBag implements Bag { /** * Returns true if the underlying map is empty. - * + * * @return true if bag is empty */ public boolean isEmpty() { @@ -102,7 +102,7 @@ public abstract class AbstractMapBag implements Bag { /** * Returns the number of occurrence of the given element in this bag by * looking up its count in the underlying map. - * + * * @param object the object to search for * @return the number of occurrences of the object, zero if not found */ @@ -118,7 +118,7 @@ public abstract class AbstractMapBag implements Bag { /** * Determines if the bag contains the given element by checking if the * underlying map contains the element as a key. - * + * * @param object the object to search for * @return true if the bag contains the given element */ @@ -128,7 +128,7 @@ public abstract class AbstractMapBag implements Bag { /** * Determines if the bag contains the given elements. - * + * * @param coll the collection to check against * @return true if the Bag contains all the collection */ @@ -142,7 +142,7 @@ public abstract class AbstractMapBag implements Bag { /** * Returns true if the bag contains all elements in the given * collection, respecting cardinality. - * + * * @param other the bag to check against * @return true if the Bag contains all the collection */ @@ -161,7 +161,7 @@ public abstract class AbstractMapBag implements Bag { /** * Gets an iterator over the bag elements. Elements present in the Bag more * than once will be returned repeatedly. - * + * * @return the iterator */ public Iterator iterator() { @@ -181,7 +181,7 @@ public abstract class AbstractMapBag implements Bag { /** * Constructor. - * + * * @param parent the parent bag */ public BagIterator(final AbstractMapBag parent) { @@ -232,12 +232,10 @@ public abstract class AbstractMapBag implements Bag { //----------------------------------------------------------------------- /** - * Adds a new element to the bag, incrementing its count in the underlying - * map. - * + * Adds a new element to the bag, incrementing its count in the underlying map. + * * @param object the object to add - * @return true if the object was not already in the - * uniqueSet + * @return true if the object was not already in the uniqueSet */ public boolean add(final E object) { return add(object, 1); @@ -245,11 +243,10 @@ public abstract class AbstractMapBag implements Bag { /** * Adds a new element to the bag, incrementing its count in the map. - * + * * @param object the object to search for * @param nCopies the number of copies to add - * @return true if the object was not already in the - * uniqueSet + * @return true if the object was not already in the uniqueSet */ public boolean add(final E object, final int nCopies) { modCount++; @@ -268,7 +265,7 @@ public abstract class AbstractMapBag implements Bag { /** * Invokes {@link #add(Object)} for each element in the given collection. - * + * * @param coll the collection to add * @return true if this call changed the bag */ @@ -294,7 +291,7 @@ public abstract class AbstractMapBag implements Bag { /** * Removes all copies of the specified object from the bag. - * + * * @param object the object to remove * @return true if the bag changed */ @@ -311,7 +308,7 @@ public abstract class AbstractMapBag implements Bag { /** * Removes a specified number of copies of an object from the bag. - * + * * @param object the object to remove * @param nCopies the number of copies to remove * @return true if the bag changed @@ -338,7 +335,7 @@ public abstract class AbstractMapBag implements Bag { /** * Removes objects from the bag according to their count in the specified * collection. - * + * * @param coll the collection to use * @return true if the bag changed */ @@ -357,7 +354,7 @@ public abstract class AbstractMapBag implements Bag { /** * Remove any members of the bag that are not in the given bag, respecting * cardinality. - * + * * @param coll the collection to retain * @return true if this call changed the collection */ @@ -372,7 +369,7 @@ public abstract class AbstractMapBag implements Bag { * Remove any members of the bag that are not in the given bag, respecting * cardinality. * @see #retainAll(Collection) - * + * * @param other the bag to retain * @return true if this call changed the collection */ @@ -429,7 +426,7 @@ public abstract class AbstractMapBag implements Bag { //----------------------------------------------------------------------- /** * Returns an array of all of this bag's elements. - * + * * @return an array of all of this bag's elements */ public Object[] toArray() { @@ -449,7 +446,7 @@ public abstract class AbstractMapBag implements Bag { * Returns an array of all of this bag's elements. * If the input array has more elements than are in the bag, * trailing elements will be set to null. - * + * * @param the type of the array elements * @param array the array to populate * @return an array of all of this bag's elements @@ -471,7 +468,7 @@ public abstract class AbstractMapBag implements Bag { final E current = it.next(); for (int index = getCount(current); index > 0; index--) { // unsafe, will throw ArrayStoreException if types are not compatible, see javadoc - @SuppressWarnings("unchecked") + @SuppressWarnings("unchecked") final T unchecked = (T) current; array[i++] = unchecked; } @@ -484,7 +481,7 @@ public abstract class AbstractMapBag implements Bag { /** * Returns an unmodifiable view of the underlying map's key set. - * + * * @return the set of unique elements in this bag */ public Set uniqueSet() { @@ -533,7 +530,7 @@ public abstract class AbstractMapBag implements Bag { /** * Compares this Bag to another. This Bag equals another Bag if it contains * the same number of occurrences of the same elements. - * + * * @param object the Bag to compare to * @return true if equal */ @@ -563,7 +560,7 @@ public abstract class AbstractMapBag implements Bag { * element. The per element hash code is defined as * (e==null ? 0 : e.hashCode()) ^ noOccurances). This hash code * is compatible with the Set interface. - * + * * @return the hash code of the Bag */ @Override @@ -579,7 +576,7 @@ public abstract class AbstractMapBag implements Bag { /** * Implement a toString() method suitable for debugging. - * + * * @return a debugging toString */ @Override diff --git a/src/main/java/org/apache/commons/collections4/bag/AbstractSortedBagDecorator.java b/src/main/java/org/apache/commons/collections4/bag/AbstractSortedBagDecorator.java index 5f83373cd..6ade71e70 100644 --- a/src/main/java/org/apache/commons/collections4/bag/AbstractSortedBagDecorator.java +++ b/src/main/java/org/apache/commons/collections4/bag/AbstractSortedBagDecorator.java @@ -44,7 +44,7 @@ public abstract class AbstractSortedBagDecorator /** * Constructor that wraps (not copies). - * + * * @param bag the bag to decorate, must not be null * @throws IllegalArgumentException if list is null */ @@ -54,7 +54,7 @@ public abstract class AbstractSortedBagDecorator /** * Gets the bag being decorated. - * + * * @return the decorated bag */ @Override @@ -63,7 +63,7 @@ public abstract class AbstractSortedBagDecorator } //----------------------------------------------------------------------- - + public E first() { return decorated().first(); } diff --git a/src/main/java/org/apache/commons/collections4/bag/HashBag.java b/src/main/java/org/apache/commons/collections4/bag/HashBag.java index f974d02be..6dbe31a48 100644 --- a/src/main/java/org/apache/commons/collections4/bag/HashBag.java +++ b/src/main/java/org/apache/commons/collections4/bag/HashBag.java @@ -42,7 +42,7 @@ public class HashBag extends AbstractMapBag implements Bag, Serializabl /** Serial version lock */ private static final long serialVersionUID = -6561115435802554013L; - + /** * Constructs an empty {@link HashBag}. */ @@ -52,7 +52,7 @@ public class HashBag extends AbstractMapBag implements Bag, Serializabl /** * Constructs a bag containing all the members of the given collection. - * + * * @param coll a collection to copy into this bag */ public HashBag(final Collection coll) { @@ -76,5 +76,5 @@ public class HashBag extends AbstractMapBag implements Bag, Serializabl in.defaultReadObject(); super.doReadObject(new HashMap(), in); } - + } diff --git a/src/main/java/org/apache/commons/collections4/bag/PredicatedBag.java b/src/main/java/org/apache/commons/collections4/bag/PredicatedBag.java index d99778ef1..e5857f396 100644 --- a/src/main/java/org/apache/commons/collections4/bag/PredicatedBag.java +++ b/src/main/java/org/apache/commons/collections4/bag/PredicatedBag.java @@ -48,7 +48,7 @@ public class PredicatedBag extends PredicatedCollection implements Bag *

* If there are any elements already in the bag being decorated, they * are validated. - * + * * @param the type of the elements in the bag * @param bag the bag to decorate, must not be null * @param predicate the predicate to use for validation, must not be null @@ -66,7 +66,7 @@ public class PredicatedBag extends PredicatedCollection implements Bag *

* If there are any elements already in the bag being decorated, they * are validated. - * + * * @param bag the bag to decorate, must not be null * @param predicate the predicate to use for validation, must not be null * @throws IllegalArgumentException if bag or predicate is null @@ -78,16 +78,16 @@ public class PredicatedBag extends PredicatedCollection implements Bag /** * Gets the decorated bag. - * + * * @return the decorated bag */ @Override protected Bag decorated() { return (Bag) super.decorated(); } - + //----------------------------------------------------------------------- - + public boolean add(final E object, final int count) { validate(object); return decorated().add(object, count); diff --git a/src/main/java/org/apache/commons/collections4/bag/PredicatedSortedBag.java b/src/main/java/org/apache/commons/collections4/bag/PredicatedSortedBag.java index 8fe8d6d87..a3312c798 100644 --- a/src/main/java/org/apache/commons/collections4/bag/PredicatedSortedBag.java +++ b/src/main/java/org/apache/commons/collections4/bag/PredicatedSortedBag.java @@ -47,7 +47,7 @@ public class PredicatedSortedBag extends PredicatedBag implements SortedBa *

* If there are any elements already in the bag being decorated, they * are validated. - * + * * @param the type of the elements in the bag * @param bag the bag to decorate, must not be null * @param predicate the predicate to use for validation, must not be null @@ -65,7 +65,7 @@ public class PredicatedSortedBag extends PredicatedBag implements SortedBa * Constructor that wraps (not copies). *

If there are any elements already in the bag being decorated, they * are validated. - * + * * @param bag the bag to decorate, must not be null * @param predicate the predicate to use for validation, must not be null * @throws IllegalArgumentException if bag or predicate is null @@ -77,16 +77,16 @@ public class PredicatedSortedBag extends PredicatedBag implements SortedBa /** * Gets the decorated sorted bag. - * + * * @return the decorated bag */ @Override protected SortedBag decorated() { return (SortedBag) super.decorated(); } - + //----------------------------------------------------------------------- - + public E first() { return decorated().first(); } diff --git a/src/main/java/org/apache/commons/collections4/bag/SynchronizedBag.java b/src/main/java/org/apache/commons/collections4/bag/SynchronizedBag.java index 26c6a2561..5ae55e147 100644 --- a/src/main/java/org/apache/commons/collections4/bag/SynchronizedBag.java +++ b/src/main/java/org/apache/commons/collections4/bag/SynchronizedBag.java @@ -40,7 +40,7 @@ public class SynchronizedBag extends SynchronizedCollection implements Bag /** * Factory method to create a synchronized bag. - * + * * @param the type of the elements in the bag * @param bag the bag to decorate, must not be null * @return a new synchronized Bag @@ -49,11 +49,11 @@ public class SynchronizedBag extends SynchronizedCollection implements Bag public static SynchronizedBag synchronizedBag(final Bag bag) { return new SynchronizedBag(bag); } - + //----------------------------------------------------------------------- /** * Constructor that wraps (not copies). - * + * * @param bag the bag to decorate, must not be null * @throws IllegalArgumentException if bag is null */ @@ -63,7 +63,7 @@ public class SynchronizedBag extends SynchronizedCollection implements Bag /** * Constructor that wraps (not copies). - * + * * @param bag the bag to decorate, must not be null * @param lock the lock to use, must not be null * @throws IllegalArgumentException if bag is null @@ -74,15 +74,15 @@ public class SynchronizedBag extends SynchronizedCollection implements Bag /** * Gets the bag being decorated. - * + * * @return the decorated bag */ protected Bag getBag() { return (Bag) decorated(); } - + //----------------------------------------------------------------------- - + public boolean add(final E object, final int count) { synchronized (lock) { return getBag().add(object, count); @@ -107,7 +107,7 @@ public class SynchronizedBag extends SynchronizedCollection implements Bag return getBag().getCount(object); } } - + //----------------------------------------------------------------------- /** * Synchronized Set for the Bag class. diff --git a/src/main/java/org/apache/commons/collections4/bag/SynchronizedSortedBag.java b/src/main/java/org/apache/commons/collections4/bag/SynchronizedSortedBag.java index 324272f25..609319a2f 100644 --- a/src/main/java/org/apache/commons/collections4/bag/SynchronizedSortedBag.java +++ b/src/main/java/org/apache/commons/collections4/bag/SynchronizedSortedBag.java @@ -40,7 +40,7 @@ public class SynchronizedSortedBag extends SynchronizedBag implements Sort /** * Factory method to create a synchronized sorted bag. - * + * * @param the type of the elements in the bag * @param bag the bag to decorate, must not be null * @return a new synchronized SortedBag @@ -49,11 +49,11 @@ public class SynchronizedSortedBag extends SynchronizedBag implements Sort public static SynchronizedSortedBag synchronizedSortedBag(final SortedBag bag) { return new SynchronizedSortedBag(bag); } - + //----------------------------------------------------------------------- /** * Constructor that wraps (not copies). - * + * * @param bag the bag to decorate, must not be null * @throws IllegalArgumentException if bag is null */ @@ -63,7 +63,7 @@ public class SynchronizedSortedBag extends SynchronizedBag implements Sort /** * Constructor that wraps (not copies). - * + * * @param bag the bag to decorate, must not be null * @param lock the lock to use, must not be null * @throws IllegalArgumentException if bag is null @@ -74,15 +74,15 @@ public class SynchronizedSortedBag extends SynchronizedBag implements Sort /** * Gets the bag being decorated. - * + * * @return the decorated bag */ protected SortedBag getSortedBag() { return (SortedBag) decorated(); } - + //----------------------------------------------------------------------- - + public synchronized E first() { synchronized (lock) { return getSortedBag().first(); diff --git a/src/main/java/org/apache/commons/collections4/bag/TransformedBag.java b/src/main/java/org/apache/commons/collections4/bag/TransformedBag.java index 3f24440c5..7864619ca 100644 --- a/src/main/java/org/apache/commons/collections4/bag/TransformedBag.java +++ b/src/main/java/org/apache/commons/collections4/bag/TransformedBag.java @@ -46,7 +46,7 @@ public class TransformedBag extends TransformedCollection implements Bag * If there are any elements already in the bag being decorated, they * are NOT transformed. Contrast this with {@link #transformedBag(Bag, Transformer)}. - * + * * @param the type of the elements in the bag * @param bag the bag to decorate, must not be null * @param transformer the transformer to use for conversion, must not be null @@ -56,7 +56,7 @@ public class TransformedBag extends TransformedCollection implements Bag Bag transformingBag(final Bag bag, final Transformer transformer) { return new TransformedBag(bag, transformer); } - + /** * Factory method to create a transforming bag that will transform * existing contents of the specified bag. @@ -64,7 +64,7 @@ public class TransformedBag extends TransformedCollection implements Bag the type of the elements in the bag * @param bag the bag to decorate, must not be null * @param transformer the transformer to use for conversion, must not be null @@ -91,7 +91,7 @@ public class TransformedBag extends TransformedCollection implements Bag * If there are any elements already in the bag being decorated, they * are NOT transformed. - * + * * @param bag the bag to decorate, must not be null * @param transformer the transformer to use for conversion, must not be null * @throws IllegalArgumentException if bag or transformer is null @@ -102,7 +102,7 @@ public class TransformedBag extends TransformedCollection implements Bag getBag() { @@ -110,7 +110,7 @@ public class TransformedBag extends TransformedCollection implements Bag extends TransformedCollection implements Bag extends TransformedBag implements Sorted *

* If there are any elements already in the bag being decorated, they * are NOT transformed. Contrast this with {@link #transformedSortedBag(SortedBag, Transformer)}. - * + * * @param the type of the elements in the bag * @param bag the bag to decorate, must not be null * @param transformer the transformer to use for conversion, must not be null @@ -55,7 +55,7 @@ public class TransformedSortedBag extends TransformedBag implements Sorted final Transformer transformer) { return new TransformedSortedBag(bag, transformer); } - + /** * Factory method to create a transforming sorted bag that will transform * existing contents of the specified sorted bag. @@ -63,7 +63,7 @@ public class TransformedSortedBag extends TransformedBag implements Sorted * If there are any elements already in the bag being decorated, they * will be transformed by this method. * Contrast this with {@link #transformingSortedBag(SortedBag, Transformer)}. - * + * * @param the type of the elements in the bag * @param bag the bag to decorate, must not be null * @param transformer the transformer to use for conversion, must not be null @@ -92,7 +92,7 @@ public class TransformedSortedBag extends TransformedBag implements Sorted *

* If there are any elements already in the bag being decorated, they * are NOT transformed. - * + * * @param bag the bag to decorate, must not be null * @param transformer the transformer to use for conversion, must not be null * @throws IllegalArgumentException if bag or transformer is null @@ -103,7 +103,7 @@ public class TransformedSortedBag extends TransformedBag implements Sorted /** * Gets the decorated bag. - * + * * @return the decorated bag */ protected SortedBag getSortedBag() { @@ -111,7 +111,7 @@ public class TransformedSortedBag extends TransformedBag implements Sorted } //----------------------------------------------------------------------- - + public E first() { return getSortedBag().first(); } 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 185bb83f6..12a55bc1e 100644 --- a/src/main/java/org/apache/commons/collections4/bag/TreeBag.java +++ b/src/main/java/org/apache/commons/collections4/bag/TreeBag.java @@ -56,7 +56,7 @@ public class TreeBag extends AbstractMapBag implements SortedBag, Seria /** * Constructs an empty bag that maintains order on its unique representative * members according to the given {@link Comparator}. - * + * * @param comparator the comparator to use */ public TreeBag(final Comparator comparator) { @@ -66,7 +66,7 @@ public class TreeBag extends AbstractMapBag implements SortedBag, Seria /** * Constructs a {@link TreeBag} containing all the members of the * specified collection. - * + * * @param coll the collection to copy into the bag */ public TreeBag(final Collection coll) { @@ -77,21 +77,21 @@ public class TreeBag extends AbstractMapBag implements SortedBag, Seria //----------------------------------------------------------------------- /** * {@inheritDoc} - * + * * @throws IllegalArgumentException if the object to be added does not implement * {@link Comparable} and the {@link TreeBag} is using natural ordering */ @Override public boolean add(final E object) { if(comparator() == null && !(object instanceof Comparable)) { - throw new IllegalArgumentException("Objects of type " + object.getClass() + " cannot be added to " + + throw new IllegalArgumentException("Objects of type " + object.getClass() + " cannot be added to " + "a naturally ordered TreeBag as it does not implement Comparable"); } return super.add(object); } //----------------------------------------------------------------------- - + public E first() { return getMap().firstKey(); } diff --git a/src/main/java/org/apache/commons/collections4/bag/UnmodifiableBag.java b/src/main/java/org/apache/commons/collections4/bag/UnmodifiableBag.java index a9d4e79ce..76092786e 100644 --- a/src/main/java/org/apache/commons/collections4/bag/UnmodifiableBag.java +++ b/src/main/java/org/apache/commons/collections4/bag/UnmodifiableBag.java @@ -34,7 +34,7 @@ import org.apache.commons.collections4.iterators.UnmodifiableIterator; *

* This class is Serializable from Commons Collections 3.1. *

- * Attempts to modify it will result in an UnsupportedOperationException. + * Attempts to modify it will result in an UnsupportedOperationException. * * @since 3.0 * @version $Id$ @@ -49,7 +49,7 @@ public final class UnmodifiableBag * Factory method to create an unmodifiable bag. *

* If the bag passed in is already unmodifiable, it is returned. - * + * * @param the type of the elements in the bag * @param bag the bag to decorate, must not be null * @return an unmodifiable Bag @@ -65,7 +65,7 @@ public final class UnmodifiableBag //----------------------------------------------------------------------- /** * Constructor that wraps (not copies). - * + * * @param bag the bag to decorate, must not be null * @throws IllegalArgumentException if bag is null */ @@ -76,7 +76,7 @@ public final class UnmodifiableBag //----------------------------------------------------------------------- /** * Write the collection out using a custom routine. - * + * * @param out the output stream * @throws IOException */ @@ -87,7 +87,7 @@ public final class UnmodifiableBag /** * Read the collection in using a custom routine. - * + * * @param in the input stream * @throws IOException * @throws ClassNotFoundException diff --git a/src/main/java/org/apache/commons/collections4/bag/UnmodifiableSortedBag.java b/src/main/java/org/apache/commons/collections4/bag/UnmodifiableSortedBag.java index 87ccec6fd..5a998c8d1 100644 --- a/src/main/java/org/apache/commons/collections4/bag/UnmodifiableSortedBag.java +++ b/src/main/java/org/apache/commons/collections4/bag/UnmodifiableSortedBag.java @@ -34,7 +34,7 @@ import org.apache.commons.collections4.iterators.UnmodifiableIterator; *

* This class is Serializable from Commons Collections 3.1. *

- * Attempts to modify it will result in an UnsupportedOperationException. + * Attempts to modify it will result in an UnsupportedOperationException. * * @since 3.0 * @version $Id$ @@ -49,7 +49,7 @@ public final class UnmodifiableSortedBag * Factory method to create an unmodifiable bag. *

* If the bag passed in is already unmodifiable, it is returned. - * + * * @param the type of the elements in the bag * @param bag the bag to decorate, must not be null * @return an unmodifiable SortedBag @@ -65,7 +65,7 @@ public final class UnmodifiableSortedBag //----------------------------------------------------------------------- /** * Constructor that wraps (not copies). - * + * * @param bag the bag to decorate, must not be null * @throws IllegalArgumentException if bag is null */ @@ -76,7 +76,7 @@ public final class UnmodifiableSortedBag //----------------------------------------------------------------------- /** * Write the collection out using a custom routine. - * + * * @param out the output stream * @throws IOException */ @@ -87,7 +87,7 @@ public final class UnmodifiableSortedBag /** * Read the collection in using a custom routine. - * + * * @param in the input stream * @throws IOException * @throws ClassNotFoundException diff --git a/src/main/java/org/apache/commons/collections4/bag/package-info.java b/src/main/java/org/apache/commons/collections4/bag/package-info.java index 6f20378ce..d7bac1f8a 100644 --- a/src/main/java/org/apache/commons/collections4/bag/package-info.java +++ b/src/main/java/org/apache/commons/collections4/bag/package-info.java @@ -15,7 +15,7 @@ * limitations under the License. */ /** - * This package contains implementations of the {@link org.apache.commons.collections4.Bag Bag} and + * This package contains implementations of the {@link org.apache.commons.collections4.Bag Bag} and * {@link org.apache.commons.collections4.SortedBag SortedBag} interfaces. * A bag stores an object and a count of the number of occurrences of the object. *