You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by tn...@apache.org on 2013/04/30 20:31:14 UTC

svn commit: r1477756 - /commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/set/

Author: tn
Date: Tue Apr 30 18:31:13 2013
New Revision: 1477756

URL: http://svn.apache.org/r1477756
Log:
Remove trailing spaces.

Modified:
    commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/set/AbstractSerializableSetDecorator.java
    commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/set/AbstractSetDecorator.java
    commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/set/AbstractSortedSetDecorator.java
    commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/set/CompositeSet.java
    commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/set/ListOrderedSet.java
    commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/set/MapBackedSet.java
    commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/set/PredicatedSet.java
    commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/set/PredicatedSortedSet.java
    commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/set/TransformedSet.java
    commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/set/TransformedSortedSet.java
    commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/set/UnmodifiableSet.java
    commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/set/UnmodifiableSortedSet.java

Modified: commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/set/AbstractSerializableSetDecorator.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/set/AbstractSerializableSetDecorator.java?rev=1477756&r1=1477755&r2=1477756&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/set/AbstractSerializableSetDecorator.java (original)
+++ commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/set/AbstractSerializableSetDecorator.java Tue Apr 30 18:31:13 2013
@@ -38,7 +38,7 @@ public abstract class AbstractSerializab
 
     /**
      * Constructor.
-     * 
+     *
      * @param set  the list to decorate, must not be null
      * @throws IllegalArgumentException if set is null
      */
@@ -49,7 +49,7 @@ public abstract class AbstractSerializab
     //-----------------------------------------------------------------------
     /**
      * Write the set out using a custom routine.
-     * 
+     *
      * @param out  the output stream
      * @throws IOException
      */
@@ -60,7 +60,7 @@ public abstract class AbstractSerializab
 
     /**
      * Read the set in using a custom routine.
-     * 
+     *
      * @param in  the input stream
      * @throws IOException
      * @throws ClassNotFoundException

Modified: commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/set/AbstractSetDecorator.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/set/AbstractSetDecorator.java?rev=1477756&r1=1477755&r2=1477756&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/set/AbstractSetDecorator.java (original)
+++ commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/set/AbstractSetDecorator.java Tue Apr 30 18:31:13 2013
@@ -45,7 +45,7 @@ public abstract class AbstractSetDecorat
 
     /**
      * Constructor that wraps (not copies).
-     * 
+     *
      * @param set  the set to decorate, must not be null
      * @throws IllegalArgumentException if set is null
      */
@@ -55,7 +55,7 @@ public abstract class AbstractSetDecorat
 
     /**
      * Gets the set being decorated.
-     * 
+     *
      * @return the decorated set
      */
     @Override

Modified: commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/set/AbstractSortedSetDecorator.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/set/AbstractSortedSetDecorator.java?rev=1477756&r1=1477755&r2=1477756&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/set/AbstractSortedSetDecorator.java (original)
+++ commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/set/AbstractSortedSetDecorator.java Tue Apr 30 18:31:13 2013
@@ -46,7 +46,7 @@ public abstract class AbstractSortedSetD
 
     /**
      * Constructor that wraps (not copies).
-     * 
+     *
      * @param set  the set to decorate, must not be null
      * @throws IllegalArgumentException if set is null
      */
@@ -56,7 +56,7 @@ public abstract class AbstractSortedSetD
 
     /**
      * Gets the set being decorated.
-     * 
+     *
      * @return the decorated set
      */
     @Override

Modified: commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/set/CompositeSet.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/set/CompositeSet.java?rev=1477756&r1=1477755&r2=1477756&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/set/CompositeSet.java (original)
+++ commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/set/CompositeSet.java Tue Apr 30 18:31:13 2013
@@ -43,7 +43,7 @@ import org.apache.commons.collections4.l
  * anymore due to its input restrictions (only accepts Sets).
  * See <a href="https://issues.apache.org/jira/browse/COLLECTIONS-424">COLLECTIONS-424</a>
  * for more details.
- * 
+ *
  * @since 3.0
  * @version $Id$
  */
@@ -77,7 +77,7 @@ public class CompositeSet<E> implements 
 
     /**
      * Create a composite set with sets as the initial set of composited Sets.
-     * 
+     *
      * @param sets  the initial sets in the composite
      */
     public CompositeSet(final Set<E>... sets) {

Modified: commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/set/ListOrderedSet.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/set/ListOrderedSet.java?rev=1477756&r1=1477755&r2=1477756&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/set/ListOrderedSet.java (original)
+++ commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/set/ListOrderedSet.java Tue Apr 30 18:31:13 2013
@@ -46,7 +46,7 @@ import org.apache.commons.collections4.l
  * set.
  * <p>
  * This class is Serializable from Commons Collections 3.1.
- * 
+ *
  * @since 3.0
  * @version $Id$
  */
@@ -65,7 +65,7 @@ public class ListOrderedSet<E>
      * use.
      * <p>
      * The list and set must both be empty.
-     * 
+     *
      * @param <E> the element type
      * @param set the set to decorate, must be empty and not null
      * @param list the list to decorate, must be empty and not null
@@ -91,7 +91,7 @@ public class ListOrderedSet<E>
      * Factory method to create an ordered set.
      * <p>
      * An <code>ArrayList</code> is used to retain order.
-     * 
+     *
      * @param <E> the element type
      * @param set the set to decorate, must not be null
      * @return a new ordered set
@@ -109,7 +109,7 @@ public class ListOrderedSet<E>
      * <p>
      * NOTE: If the list contains duplicates, the duplicates are removed,
      * altering the specified list.
-     * 
+     *
      * @param <E> the element type
      * @param list the list to decorate, must not be null
      * @return a new ordered set
@@ -129,7 +129,7 @@ public class ListOrderedSet<E>
     /**
      * Constructs a new empty <code>ListOrderedSet</code> using a
      * <code>HashSet</code> and an <code>ArrayList</code> internally.
-     * 
+     *
      * @since 3.1
      */
     public ListOrderedSet() {
@@ -139,7 +139,7 @@ public class ListOrderedSet<E>
 
     /**
      * Constructor that wraps (not copies).
-     * 
+     *
      * @param set the set to decorate, must not be null
      * @throws IllegalArgumentException if set is null
      */
@@ -153,7 +153,7 @@ public class ListOrderedSet<E>
      * use.
      * <p>
      * The set and list must both be correctly initialised to the same elements.
-     * 
+     *
      * @param set the set to decorate, must not be null
      * @param list the list to decorate, must not be null
      * @throws IllegalArgumentException if set or list is null
@@ -169,7 +169,7 @@ public class ListOrderedSet<E>
     // -----------------------------------------------------------------------
     /**
      * Gets an unmodifiable view of the order of the Set.
-     * 
+     *
      * @return an unmodifiable list view
      */
     public List<E> asList() {
@@ -263,7 +263,7 @@ public class ListOrderedSet<E>
 
     /**
      * Returns the element at the specified position in this ordered set.
-     * 
+     *
      * @param index the position of the element in the ordered {@link Set}.
      * @return the element at position {@code index}
      * @see List#get(int)
@@ -275,7 +275,7 @@ public class ListOrderedSet<E>
     /**
      * Returns the index of the first occurrence of the specified element in
      * ordered set.
-     * 
+     *
      * @param object the element to search for
      * @return the index of the first occurrence of the object, or {@code -1} if
      *         this ordered set does not contain this object
@@ -289,7 +289,7 @@ public class ListOrderedSet<E>
      * Inserts the specified element at the specified position if it is not yet
      * contained in this ordered set (optional operation). Shifts the element
      * currently at this position and any subsequent elements to the right.
-     * 
+     *
      * @param index the index at which the element is to be inserted
      * @param object the element to be inserted
      * @see List#add(int, Object)
@@ -306,7 +306,7 @@ public class ListOrderedSet<E>
      * ordered set at the specified position (optional operation). Shifts the
      * element currently at the position and all subsequent elements to the
      * right.
-     * 
+     *
      * @param index the position to insert the elements
      * @param coll the collection containing the elements to be inserted
      * @return {@code true} if this ordered set changed as a result of the call
@@ -335,7 +335,7 @@ public class ListOrderedSet<E>
     /**
      * Removes the element at the specified position from the ordered set.
      * Shifts any subsequent elements to the left.
-     * 
+     *
      * @param index the index of the element to be removed
      * @return the element that has been remove from the ordered set
      * @see List#remove(int)
@@ -350,7 +350,7 @@ public class ListOrderedSet<E>
      * Uses the underlying List's toString so that order is achieved. This means
      * that the decorated Set's toString is not used, so any custom toStrings
      * will be ignored.
-     * 
+     *
      * @return a string representation of the ordered set
      */
     // Fortunately List.toString and Set.toString look the same

Modified: commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/set/MapBackedSet.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/set/MapBackedSet.java?rev=1477756&r1=1477755&r2=1477756&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/set/MapBackedSet.java (original)
+++ commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/set/MapBackedSet.java Tue Apr 30 18:31:13 2013
@@ -48,7 +48,7 @@ public final class MapBackedSet<E, V> im
 
     /**
      * Factory method to create a set from a map.
-     * 
+     *
      * @param <E> the element type
      * @param <V> the dummy value type in the map
      * @param map  the map to decorate, must not be null
@@ -61,7 +61,7 @@ public final class MapBackedSet<E, V> im
 
     /**
      * Factory method to create a set from a map.
-     * 
+     *
      * @param <E> the element type
      * @param <V> the dummy value type in the map
      * @param map  the map to decorate, must not be null
@@ -79,7 +79,7 @@ public final class MapBackedSet<E, V> im
     //-----------------------------------------------------------------------
     /**
      * Constructor that wraps (not copies).
-     * 
+     *
      * @param map  the map to decorate, must not be null
      * @param dummyValue  the dummy value to use
      * @throws IllegalArgumentException if map is null

Modified: commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/set/PredicatedSet.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/set/PredicatedSet.java?rev=1477756&r1=1477755&r2=1477756&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/set/PredicatedSet.java (original)
+++ commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/set/PredicatedSet.java Tue Apr 30 18:31:13 2013
@@ -47,7 +47,7 @@ public class PredicatedSet<E> extends Pr
      * <p>
      * If there are any elements already in the set being decorated, they
      * are validated.
-     * 
+     *
      * @param <E> the element type
      * @param set  the set to decorate, must not be null
      * @param predicate  the predicate to use for validation, must not be null
@@ -65,7 +65,7 @@ public class PredicatedSet<E> extends Pr
      * <p>
      * If there are any elements already in the set being decorated, they
      * are validated.
-     * 
+     *
      * @param set  the set to decorate, must not be null
      * @param predicate  the predicate to use for validation, must not be null
      * @throws IllegalArgumentException if set or predicate is null
@@ -77,7 +77,7 @@ public class PredicatedSet<E> extends Pr
 
     /**
      * Gets the set being decorated.
-     * 
+     *
      * @return the decorated set
      */
     @Override

Modified: commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/set/PredicatedSortedSet.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/set/PredicatedSortedSet.java?rev=1477756&r1=1477755&r2=1477756&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/set/PredicatedSortedSet.java (original)
+++ commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/set/PredicatedSortedSet.java Tue Apr 30 18:31:13 2013
@@ -47,7 +47,7 @@ public class PredicatedSortedSet<E> exte
      * <p>
      * If there are any elements already in the set being decorated, they
      * are validated.
-     * 
+     *
      * @param <E> the element type
      * @param set  the set to decorate, must not be null
      * @param predicate  the predicate to use for validation, must not be null
@@ -66,7 +66,7 @@ public class PredicatedSortedSet<E> exte
      * <p>
      * If there are any elements already in the set being decorated, they
      * are validated.
-     * 
+     *
      * @param set  the set to decorate, must not be null
      * @param predicate  the predicate to use for validation, must not be null
      * @throws IllegalArgumentException if set or predicate is null
@@ -78,7 +78,7 @@ public class PredicatedSortedSet<E> exte
 
     /**
      * Gets the sorted set being decorated.
-     * 
+     *
      * @return the decorated sorted set
      */
     @Override

Modified: commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/set/TransformedSet.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/set/TransformedSet.java?rev=1477756&r1=1477755&r2=1477756&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/set/TransformedSet.java (original)
+++ commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/set/TransformedSet.java Tue Apr 30 18:31:13 2013
@@ -45,7 +45,7 @@ public class TransformedSet<E> extends T
      * If there are any elements already in the set being decorated, they
      * are NOT transformed.
      * Contrast this with {@link #transformedSet(Set, Transformer)}.
-     * 
+     *
      * @param <E> the element type
      * @param set  the set to decorate, must not be null
      * @param transformer  the transformer to use for conversion, must not be null
@@ -56,7 +56,7 @@ public class TransformedSet<E> extends T
             final Transformer<? super E, ? extends E> transformer) {
         return new TransformedSet<E>(set, transformer);
     }
-    
+
     /**
      * Factory method to create a transforming set that will transform
      * existing contents of the specified set.
@@ -64,7 +64,7 @@ public class TransformedSet<E> extends T
      * If there are any elements already in the set being decorated, they
      * will be transformed by this method.
      * Contrast this with {@link #transformingSet(Set, Transformer)}.
-     * 
+     *
      * @param <E> the element type
      * @param set  the set to decorate, must not be null
      * @param transformer  the transformer to use for conversion, must not be null
@@ -91,7 +91,7 @@ public class TransformedSet<E> extends T
      * <p>
      * If there are any elements already in the set being decorated, they
      * are NOT transformed.
-     * 
+     *
      * @param set  the set to decorate, must not be null
      * @param transformer  the transformer to use for conversion, must not be null
      * @throws IllegalArgumentException if set or transformer is null

Modified: commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/set/TransformedSortedSet.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/set/TransformedSortedSet.java?rev=1477756&r1=1477755&r2=1477756&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/set/TransformedSortedSet.java (original)
+++ commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/set/TransformedSortedSet.java Tue Apr 30 18:31:13 2013
@@ -45,7 +45,7 @@ public class TransformedSortedSet<E> ext
      * If there are any elements already in the set being decorated, they
      * are NOT transformed.
      * Contrast this with {@link #transformedSortedSet(SortedSet, Transformer)}.
-     * 
+     *
      * @param <E> the element type
      * @param set  the set to decorate, must not be null
      * @param transformer  the transformer to use for conversion, must not be null
@@ -56,7 +56,7 @@ public class TransformedSortedSet<E> ext
             final Transformer<? super E, ? extends E> transformer) {
         return new TransformedSortedSet<E>(set, transformer);
     }
-    
+
     /**
      * Factory method to create a transforming sorted set that will transform
      * existing contents of the specified sorted set.
@@ -64,7 +64,7 @@ public class TransformedSortedSet<E> ext
      * If there are any elements already in the set being decorated, they
      * will be transformed by this method.
      * Contrast this with {@link #transformingSortedSet(SortedSet, Transformer)}.
-     * 
+     *
      * @param <E> the element type
      * @param set  the set to decorate, must not be null
      * @param transformer  the transformer to use for conversion, must not be null
@@ -93,7 +93,7 @@ public class TransformedSortedSet<E> ext
      * <p>
      * If there are any elements already in the set being decorated, they
      * are NOT transformed.
-     * 
+     *
      * @param set  the set to decorate, must not be null
      * @param transformer  the transformer to use for conversion, must not be null
      * @throws IllegalArgumentException if set or transformer is null
@@ -104,7 +104,7 @@ public class TransformedSortedSet<E> ext
 
     /**
      * Gets the decorated set.
-     * 
+     *
      * @return the decorated set
      */
     protected SortedSet<E> getSortedSet() {

Modified: commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/set/UnmodifiableSet.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/set/UnmodifiableSet.java?rev=1477756&r1=1477755&r2=1477756&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/set/UnmodifiableSet.java (original)
+++ commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/set/UnmodifiableSet.java Tue Apr 30 18:31:13 2013
@@ -28,7 +28,7 @@ import org.apache.commons.collections4.i
  * <p>
  * This class is Serializable from Commons Collections 3.1.
  * <p>
- * Attempts to modify it will result in an UnsupportedOperationException. 
+ * Attempts to modify it will result in an UnsupportedOperationException.
  *
  * @since 3.0
  * @version $Id$
@@ -42,7 +42,7 @@ public final class UnmodifiableSet<E>
 
     /**
      * Factory method to create an unmodifiable set.
-     * 
+     *
      * @param <E> the element type
      * @param set  the set to decorate, must not be null
      * @return a new unmodifiable set
@@ -58,7 +58,7 @@ public final class UnmodifiableSet<E>
     //-----------------------------------------------------------------------
     /**
      * Constructor that wraps (not copies).
-     * 
+     *
      * @param set  the set to decorate, must not be null
      * @throws IllegalArgumentException if set is null
      */

Modified: commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/set/UnmodifiableSortedSet.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/set/UnmodifiableSortedSet.java?rev=1477756&r1=1477755&r2=1477756&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/set/UnmodifiableSortedSet.java (original)
+++ commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/set/UnmodifiableSortedSet.java Tue Apr 30 18:31:13 2013
@@ -32,7 +32,7 @@ import org.apache.commons.collections4.i
  * <p>
  * This class is Serializable from Commons Collections 3.1.
  * <p>
- * Attempts to modify it will result in an UnsupportedOperationException. 
+ * Attempts to modify it will result in an UnsupportedOperationException.
  *
  * @since 3.0
  * @version $Id$
@@ -46,7 +46,7 @@ public final class UnmodifiableSortedSet
 
     /**
      * Factory method to create an unmodifiable set.
-     * 
+     *
      * @param <E> the element type
      * @param set  the set to decorate, must not be null
      * @return a new unmodifiable {@link SortedSet}
@@ -62,7 +62,7 @@ public final class UnmodifiableSortedSet
     //-----------------------------------------------------------------------
     /**
      * Write the collection out using a custom routine.
-     * 
+     *
      * @param out  the output stream
      * @throws IOException
      */
@@ -73,12 +73,12 @@ public final class UnmodifiableSortedSet
 
     /**
      * Read the collection in using a custom routine.
-     * 
+     *
      * @param in  the input stream
      * @throws IOException
      * @throws ClassNotFoundException
      */
-    @SuppressWarnings("unchecked") // (1) should only fail if input stream is incorrect 
+    @SuppressWarnings("unchecked") // (1) should only fail if input stream is incorrect
     private void readObject(final ObjectInputStream in) throws IOException, ClassNotFoundException {
         in.defaultReadObject();
         collection = (Collection<E>) in.readObject(); // (1)
@@ -87,7 +87,7 @@ public final class UnmodifiableSortedSet
     //-----------------------------------------------------------------------
     /**
      * Constructor that wraps (not copies).
-     * 
+     *
      * @param set  the set to decorate, must not be null
      * @throws IllegalArgumentException if set is null
      */