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:11:20 UTC
svn commit: r1477746 -
/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/collection/
Author: tn
Date: Tue Apr 30 18:11:20 2013
New Revision: 1477746
URL: http://svn.apache.org/r1477746
Log:
Remove trailing spaces.
Modified:
commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/collection/AbstractCollectionDecorator.java
commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/collection/IndexedCollection.java
commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/collection/PredicatedCollection.java
commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/collection/SynchronizedCollection.java
commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/collection/TransformedCollection.java
commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/collection/UnmodifiableBoundedCollection.java
commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/collection/UnmodifiableCollection.java
commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/collection/package-info.java
Modified: commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/collection/AbstractCollectionDecorator.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/collection/AbstractCollectionDecorator.java?rev=1477746&r1=1477745&r2=1477746&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/collection/AbstractCollectionDecorator.java (original)
+++ commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/collection/AbstractCollectionDecorator.java Tue Apr 30 18:11:20 2013
@@ -31,7 +31,7 @@ import java.util.Iterator;
* written for each implementation.
* <p>
* This implementation does not perform any special processing with
- * {@link #iterator()}. Instead it simply returns the value from the
+ * {@link #iterator()}. Instead it simply returns the value from the
* wrapped collection. This may be undesirable, for example if you are trying
* to write an unmodifiable implementation it might provide a loophole.
*
@@ -60,7 +60,7 @@ public abstract class AbstractCollection
/**
* Constructor that wraps (not copies).
- *
+ *
* @param coll the collection to decorate, must not be null
* @throws IllegalArgumentException if the collection is null
*/
@@ -74,7 +74,7 @@ public abstract class AbstractCollection
/**
* Gets the collection being decorated.
* All access to the decorated collection goes via this method.
- *
+ *
* @return the decorated collection
*/
protected Collection<E> decorated() {
@@ -82,7 +82,7 @@ public abstract class AbstractCollection
}
//-----------------------------------------------------------------------
-
+
public boolean add(final E object) {
return decorated().add(object);
}
Modified: commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/collection/IndexedCollection.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/collection/IndexedCollection.java?rev=1477746&r1=1477745&r2=1477746&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/collection/IndexedCollection.java (original)
+++ commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/collection/IndexedCollection.java Tue Apr 30 18:11:20 2013
@@ -37,7 +37,7 @@ import org.apache.commons.collections4.m
*
* @param <K> the type of object in the index.
* @param <C> the type of object in the collection.
- *
+ *
* @since 4.0
* @version $Id$
*/
@@ -51,7 +51,7 @@ public class IndexedCollection<K, C> ext
/** The map of indexes to collected objects. */
private final MultiMap<K, C> index;
-
+
/** The uniqueness constraint for the index. */
private final boolean uniqueIndex;
Modified: commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/collection/PredicatedCollection.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/collection/PredicatedCollection.java?rev=1477746&r1=1477745&r2=1477746&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/collection/PredicatedCollection.java (original)
+++ commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/collection/PredicatedCollection.java Tue Apr 30 18:11:20 2013
@@ -50,7 +50,7 @@ public class PredicatedCollection<E> ext
* <p>
* If there are any elements already in the collection being decorated, they
* are validated.
- *
+ *
* @param <T> the type of the elements in the collection
* @param coll the collection to decorate, must not be null
* @param predicate the predicate to use for validation, must not be null
@@ -69,7 +69,7 @@ public class PredicatedCollection<E> ext
* <p>
* If there are any elements already in the collection being decorated, they
* are validated.
- *
+ *
* @param coll the collection to decorate, must not be null
* @param predicate the predicate to use for validation, must not be null
* @throws IllegalArgumentException if collection or predicate is null
@@ -91,7 +91,7 @@ public class PredicatedCollection<E> ext
* <p>
* The predicate itself should not throw an exception, but return false to
* indicate that the object cannot be added.
- *
+ *
* @param object the object being added
* @throws IllegalArgumentException if the add is invalid
*/
@@ -106,7 +106,7 @@ public class PredicatedCollection<E> ext
/**
* Override to validate the object being added to ensure it matches
* the predicate.
- *
+ *
* @param object the object being added
* @return the result of adding to the underlying collection
* @throws IllegalArgumentException if the add is invalid
@@ -121,7 +121,7 @@ public class PredicatedCollection<E> ext
* Override to validate the objects being added to ensure they match
* the predicate. If any one fails, no update is made to the underlying
* collection.
- *
+ *
* @param coll the collection being added
* @return the result of adding to the underlying collection
* @throws IllegalArgumentException if the add is invalid
Modified: commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/collection/SynchronizedCollection.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/collection/SynchronizedCollection.java?rev=1477746&r1=1477745&r2=1477746&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/collection/SynchronizedCollection.java (original)
+++ commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/collection/SynchronizedCollection.java Tue Apr 30 18:11:20 2013
@@ -50,7 +50,7 @@ public class SynchronizedCollection<E> i
/**
* Factory method to create a synchronized collection.
- *
+ *
* @param <T> the type of the elements in the collection
* @param coll the collection to decorate, must not be null
* @return a new synchronized collection
@@ -63,7 +63,7 @@ public class SynchronizedCollection<E> i
//-----------------------------------------------------------------------
/**
* Constructor that wraps (not copies).
- *
+ *
* @param collection the collection to decorate, must not be null
* @throws IllegalArgumentException if the collection is null
*/
@@ -77,7 +77,7 @@ public class SynchronizedCollection<E> i
/**
* Constructor that wraps (not copies).
- *
+ *
* @param collection the collection to decorate, must not be null
* @param lock the lock object to use, must not be null
* @throws IllegalArgumentException if the collection is null
@@ -92,7 +92,7 @@ public class SynchronizedCollection<E> i
/**
* Gets the collection being decorated.
- *
+ *
* @return the decorated collection
*/
protected Collection<E> decorated() {
@@ -100,7 +100,7 @@ public class SynchronizedCollection<E> i
}
//-----------------------------------------------------------------------
-
+
public boolean add(final E object) {
synchronized (lock) {
return decorated().add(object);
@@ -144,7 +144,8 @@ public class SynchronizedCollection<E> i
* Iterator it = coll.iterator();
* // do stuff with iterator
* }
- *
+ * </pre>
+ *
* @return an iterator that must be manually synchronized on the collection
*/
public Iterator<E> iterator() {
Modified: commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/collection/TransformedCollection.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/collection/TransformedCollection.java?rev=1477746&r1=1477745&r2=1477746&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/collection/TransformedCollection.java (original)
+++ commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/collection/TransformedCollection.java Tue Apr 30 18:11:20 2013
@@ -50,7 +50,7 @@ public class TransformedCollection<E> ex
* If there are any elements already in the collection being decorated, they
* are NOT transformed.
* Contrast this with {@link #transformedCollection(Collection, Transformer)}.
- *
+ *
* @param <E> the type of the elements in the collection
* @param coll the collection to decorate, must not be null
* @param transformer the transformer to use for conversion, must not be null
@@ -69,7 +69,7 @@ public class TransformedCollection<E> ex
* If there are any elements already in the collection being decorated, they
* will be transformed by this method.
* Contrast this with {@link #transformingCollection(Collection, Transformer)}.
- *
+ *
* @param <E> the type of the elements in the collection
* @param collection the collection to decorate, must not be null
* @param transformer the transformer to use for conversion, must not be null
@@ -81,7 +81,7 @@ public class TransformedCollection<E> ex
final Transformer<? super E, ? extends E> transformer) {
final TransformedCollection<E> decorated = new TransformedCollection<E>(collection, transformer);
- // null collection & transformer are disallowed by the constructor call above
+ // null collection & transformer are disallowed by the constructor call above
if (collection.size() > 0) {
@SuppressWarnings("unchecked") // collection is of type E
final E[] values = (E[]) collection.toArray(); // NOPMD - false positive for generics
@@ -99,7 +99,7 @@ public class TransformedCollection<E> ex
* <p>
* If there are any elements already in the collection being decorated, they
* are NOT transformed.
- *
+ *
* @param coll the collection to decorate, must not be null
* @param transformer the transformer to use for conversion, must not be null
* @throws IllegalArgumentException if collection or transformer is null
@@ -116,7 +116,7 @@ public class TransformedCollection<E> ex
* Transforms an object.
* <p>
* The transformer itself may throw an exception if necessary.
- *
+ *
* @param object the object to transform
* @return a transformed object
*/
@@ -128,7 +128,7 @@ public class TransformedCollection<E> ex
* Transforms a collection.
* <p>
* The transformer itself may throw an exception if necessary.
- *
+ *
* @param coll the collection to transform
* @return a transformed object
*/
Modified: commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/collection/UnmodifiableBoundedCollection.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/collection/UnmodifiableBoundedCollection.java?rev=1477746&r1=1477745&r2=1477746&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/collection/UnmodifiableBoundedCollection.java (original)
+++ commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/collection/UnmodifiableBoundedCollection.java Tue Apr 30 18:11:20 2013
@@ -34,7 +34,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$
Modified: commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/collection/UnmodifiableCollection.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/collection/UnmodifiableCollection.java?rev=1477746&r1=1477745&r2=1477746&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/collection/UnmodifiableCollection.java (original)
+++ commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/collection/UnmodifiableCollection.java Tue Apr 30 18:11:20 2013
@@ -27,7 +27,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.
*
* @param <E> the type of the elements in the collection
* @since 3.0
@@ -44,7 +44,7 @@ public final class UnmodifiableCollectio
* Factory method to create an unmodifiable collection.
* <p>
* If the collection passed in is already unmodifiable, it is returned.
- *
+ *
* @param <T> the type of the elements in the collection
* @param coll the collection to decorate, must not be null
* @return an unmodifiable collection
@@ -60,7 +60,7 @@ public final class UnmodifiableCollectio
//-----------------------------------------------------------------------
/**
* Constructor that wraps (not copies).
- *
+ *
* @param coll the collection to decorate, must not be null
* @throws IllegalArgumentException if collection is null
*/
Modified: commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/collection/package-info.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/collection/package-info.java?rev=1477746&r1=1477745&r2=1477746&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/collection/package-info.java (original)
+++ commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/collection/package-info.java Tue Apr 30 18:11:20 2013
@@ -30,7 +30,7 @@
* <li>Transformed - transforms elements as they are added
* <li>Indexed - provides a map-like view onto another collection
* </ul>
- *
+ *
* @version $Id$
*/
package org.apache.commons.collections4.collection;