Remove tab characters git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/branches/COLLECTIONS_3_2_BRANCH@647116 13f79535-47bb-0310-9956-ffa450edef68
Project: http://git-wip-us.apache.org/repos/asf/commons-collections/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-collections/commit/cba26a15 Tree: http://git-wip-us.apache.org/repos/asf/commons-collections/tree/cba26a15 Diff: http://git-wip-us.apache.org/repos/asf/commons-collections/diff/cba26a15 Branch: refs/heads/COLLECTIONS_3_2_BRANCH Commit: cba26a1583d8c2296a82ad647c58cc5698171de3 Parents: 2cad4a1 Author: Niall Kegan Pemberton <nia...@apache.org> Authored: Fri Apr 11 11:23:08 2008 +0000 Committer: Niall Kegan Pemberton <nia...@apache.org> Committed: Fri Apr 11 11:23:08 2008 +0000 ---------------------------------------------------------------------- .../collections/CursorableLinkedList.java | 28 ++++++------ .../commons/collections/PredicateUtils.java | 2 +- .../collections/comparators/NullComparator.java | 2 +- .../collections/iterators/ArrayIterator.java | 4 +- .../iterators/ArrayListIterator.java | 2 +- .../collections/iterators/IteratorChain.java | 2 +- .../iterators/ObjectArrayListIterator.java | 2 +- .../iterators/ObjectGraphIterator.java | 2 +- .../iterators/SingletonIterator.java | 2 +- .../commons/collections/map/CompositeMap.java | 48 ++++++++++---------- 10 files changed, 47 insertions(+), 47 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-collections/blob/cba26a15/src/java/org/apache/commons/collections/CursorableLinkedList.java ---------------------------------------------------------------------- diff --git a/src/java/org/apache/commons/collections/CursorableLinkedList.java b/src/java/org/apache/commons/collections/CursorableLinkedList.java index 0abe4ed..bc420ca 100644 --- a/src/java/org/apache/commons/collections/CursorableLinkedList.java +++ b/src/java/org/apache/commons/collections/CursorableLinkedList.java @@ -78,11 +78,11 @@ public class CursorableLinkedList implements List, Serializable { * @param element element to be inserted. * * @throws ClassCastException if the class of the specified element - * prevents it from being added to this list. + * prevents it from being added to this list. * @throws IllegalArgumentException if some aspect of the specified - * element prevents it from being added to this list. + * element prevents it from being added to this list. * @throws IndexOutOfBoundsException if the index is out of range - * (index < 0 || index > size()). + * (index < 0 || index > size()). */ public void add(int index, Object element) { if(index == _size) { @@ -109,7 +109,7 @@ public class CursorableLinkedList implements List, Serializable { * @return <tt>true</tt> if this list changed as a result of the call. * * @throws ClassCastException if the class of an element in the specified - * collection prevents it from being added to this list. + * collection prevents it from being added to this list. * @throws IllegalArgumentException if some aspect of an element in the * specified collection prevents it from being added to this * list. @@ -137,18 +137,18 @@ public class CursorableLinkedList implements List, Serializable { * collection is this list, and it's nonempty.) * * @param index index at which to insert first element from the specified - * collection. + * collection. * @param c elements to be inserted into this list. * @return <tt>true</tt> if this list changed as a result of the call. * * @throws ClassCastException if the class of one of elements of the - * specified collection prevents it from being added to this - * list. + * specified collection prevents it from being added to this + * list. * @throws IllegalArgumentException if some aspect of one of elements of * the specified collection prevents it from being added to * this list. * @throws IndexOutOfBoundsException if the index is out of range (index - * < 0 || index > size()). + * < 0 || index > size()). */ public boolean addAll(int index, Collection c) { if(c.isEmpty()) { @@ -291,7 +291,7 @@ public class CursorableLinkedList implements List, Serializable { * @see #listIterator(int) * @see CursorableLinkedList.Cursor * @throws IndexOutOfBoundsException if the index is out of range (index - * < 0 || index > size()). + * < 0 || index > size()). */ public CursorableLinkedList.Cursor cursor(int i) { return new Cursor(i); @@ -333,7 +333,7 @@ public class CursorableLinkedList implements List, Serializable { * @return the element at the specified position in this list. * * @throws IndexOutOfBoundsException if the index is out of range (index - * < 0 || index >= size()). + * < 0 || index >= size()). */ public Object get(int index) { return getListableAt(index).value(); @@ -450,7 +450,7 @@ public class CursorableLinkedList implements List, Serializable { * * @param o element to search for. * @return the index in this list of the last occurrence of the specified - * element, or -1 if this list does not contain this element. + * element, or -1 if this list does not contain this element. */ public int lastIndexOf(Object o) { int ndx = _size-1; @@ -617,11 +617,11 @@ public class CursorableLinkedList implements List, Serializable { * @return the element previously at the specified position. * * @throws ClassCastException if the class of the specified element - * prevents it from being added to this list. + * prevents it from being added to this list. * @throws IllegalArgumentException if some aspect of the specified - * element prevents it from being added to this list. + * element prevents it from being added to this list. * @throws IndexOutOfBoundsException if the index is out of range - * (index < 0 || index >= size()). + * (index < 0 || index >= size()). */ public Object set(int index, Object element) { Listable elt = getListableAt(index); http://git-wip-us.apache.org/repos/asf/commons-collections/blob/cba26a15/src/java/org/apache/commons/collections/PredicateUtils.java ---------------------------------------------------------------------- diff --git a/src/java/org/apache/commons/collections/PredicateUtils.java b/src/java/org/apache/commons/collections/PredicateUtils.java index 9561d6b..193637f 100644 --- a/src/java/org/apache/commons/collections/PredicateUtils.java +++ b/src/java/org/apache/commons/collections/PredicateUtils.java @@ -527,7 +527,7 @@ public class PredicateUtils { * @param predicate the predicate to call with the result of the transform * @return the predicate * @throws IllegalArgumentException if the transformer or the predicate is null - * @since Commons Collections 3.1 + * @since Commons Collections 3.1 */ public static Predicate transformedPredicate(Transformer transformer, Predicate predicate) { return TransformedPredicate.getInstance(transformer, predicate); http://git-wip-us.apache.org/repos/asf/commons-collections/blob/cba26a15/src/java/org/apache/commons/collections/comparators/NullComparator.java ---------------------------------------------------------------------- diff --git a/src/java/org/apache/commons/collections/comparators/NullComparator.java b/src/java/org/apache/commons/collections/comparators/NullComparator.java index b6cd8ed..d52c6db 100644 --- a/src/java/org/apache/commons/collections/comparators/NullComparator.java +++ b/src/java/org/apache/commons/collections/comparators/NullComparator.java @@ -168,7 +168,7 @@ public class NullComparator implements Comparator, Serializable { if(!obj.getClass().equals(this.getClass())) { return false; } NullComparator other = (NullComparator)obj; - + return ((this.nullsAreHigh == other.nullsAreHigh) && (this.nonNullComparator.equals(other.nonNullComparator))); } http://git-wip-us.apache.org/repos/asf/commons-collections/blob/cba26a15/src/java/org/apache/commons/collections/iterators/ArrayIterator.java ---------------------------------------------------------------------- diff --git a/src/java/org/apache/commons/collections/iterators/ArrayIterator.java b/src/java/org/apache/commons/collections/iterators/ArrayIterator.java index c81abd5..7f6e52d 100644 --- a/src/java/org/apache/commons/collections/iterators/ArrayIterator.java +++ b/src/java/org/apache/commons/collections/iterators/ArrayIterator.java @@ -48,9 +48,9 @@ public class ArrayIterator implements ResettableIterator { /** The start index to loop from */ protected int startIndex = 0; /** The end index to loop to */ - protected int endIndex = 0; + protected int endIndex = 0; /** The current iterator index */ - protected int index = 0; + protected int index = 0; // Constructors // ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-collections/blob/cba26a15/src/java/org/apache/commons/collections/iterators/ArrayListIterator.java ---------------------------------------------------------------------- diff --git a/src/java/org/apache/commons/collections/iterators/ArrayListIterator.java b/src/java/org/apache/commons/collections/iterators/ArrayListIterator.java index 1567ee4..75e29c2 100644 --- a/src/java/org/apache/commons/collections/iterators/ArrayListIterator.java +++ b/src/java/org/apache/commons/collections/iterators/ArrayListIterator.java @@ -45,7 +45,7 @@ import org.apache.commons.collections.ResettableListIterator; * @author Phil Steitz */ public class ArrayListIterator extends ArrayIterator - implements ListIterator, ResettableListIterator { + implements ListIterator, ResettableListIterator { /** * Holds the index of the last item returned by a call to <code>next()</code> http://git-wip-us.apache.org/repos/asf/commons-collections/blob/cba26a15/src/java/org/apache/commons/collections/iterators/IteratorChain.java ---------------------------------------------------------------------- diff --git a/src/java/org/apache/commons/collections/iterators/IteratorChain.java b/src/java/org/apache/commons/collections/iterators/IteratorChain.java index 890634d..25d92c8 100644 --- a/src/java/org/apache/commons/collections/iterators/IteratorChain.java +++ b/src/java/org/apache/commons/collections/iterators/IteratorChain.java @@ -50,7 +50,7 @@ import org.apache.commons.collections.list.UnmodifiableList; */ public class IteratorChain implements Iterator { - /** The chain of iterators */ + /** The chain of iterators */ protected final List iteratorChain = new ArrayList(); /** The index of the current iterator */ protected int currentIteratorIndex = 0; http://git-wip-us.apache.org/repos/asf/commons-collections/blob/cba26a15/src/java/org/apache/commons/collections/iterators/ObjectArrayListIterator.java ---------------------------------------------------------------------- diff --git a/src/java/org/apache/commons/collections/iterators/ObjectArrayListIterator.java b/src/java/org/apache/commons/collections/iterators/ObjectArrayListIterator.java index c148100..662a28c 100644 --- a/src/java/org/apache/commons/collections/iterators/ObjectArrayListIterator.java +++ b/src/java/org/apache/commons/collections/iterators/ObjectArrayListIterator.java @@ -42,7 +42,7 @@ import org.apache.commons.collections.ResettableListIterator; * @author Phil Steitz */ public class ObjectArrayListIterator extends ObjectArrayIterator - implements ListIterator, ResettableListIterator { + implements ListIterator, ResettableListIterator { /** * Holds the index of the last item returned by a call to <code>next()</code> http://git-wip-us.apache.org/repos/asf/commons-collections/blob/cba26a15/src/java/org/apache/commons/collections/iterators/ObjectGraphIterator.java ---------------------------------------------------------------------- diff --git a/src/java/org/apache/commons/collections/iterators/ObjectGraphIterator.java b/src/java/org/apache/commons/collections/iterators/ObjectGraphIterator.java index 3c60393..9f0da86 100644 --- a/src/java/org/apache/commons/collections/iterators/ObjectGraphIterator.java +++ b/src/java/org/apache/commons/collections/iterators/ObjectGraphIterator.java @@ -79,7 +79,7 @@ public class ObjectGraphIterator implements Iterator { /** The stack of iterators */ protected final ArrayStack stack = new ArrayStack(8); - /** The root object in the tree */ + /** The root object in the tree */ protected Object root; /** The transformer to use */ protected Transformer transformer; http://git-wip-us.apache.org/repos/asf/commons-collections/blob/cba26a15/src/java/org/apache/commons/collections/iterators/SingletonIterator.java ---------------------------------------------------------------------- diff --git a/src/java/org/apache/commons/collections/iterators/SingletonIterator.java b/src/java/org/apache/commons/collections/iterators/SingletonIterator.java index bd594c2..9726f4f 100644 --- a/src/java/org/apache/commons/collections/iterators/SingletonIterator.java +++ b/src/java/org/apache/commons/collections/iterators/SingletonIterator.java @@ -33,7 +33,7 @@ import org.apache.commons.collections.ResettableIterator; * @author Rodney Waldhoff */ public class SingletonIterator - implements Iterator, ResettableIterator { + implements Iterator, ResettableIterator { /** Whether remove is allowed */ private final boolean removeAllowed; http://git-wip-us.apache.org/repos/asf/commons-collections/blob/cba26a15/src/java/org/apache/commons/collections/map/CompositeMap.java ---------------------------------------------------------------------- diff --git a/src/java/org/apache/commons/collections/map/CompositeMap.java b/src/java/org/apache/commons/collections/map/CompositeMap.java index c1a2f17..7fa3c46 100644 --- a/src/java/org/apache/commons/collections/map/CompositeMap.java +++ b/src/java/org/apache/commons/collections/map/CompositeMap.java @@ -185,7 +185,7 @@ public class CompositeMap implements Map { * key. * * @throws ClassCastException if the key is of an inappropriate type for - * this map (optional). + * this map (optional). * @throws NullPointerException if the key is <tt>null</tt> and this map * does not not permit <tt>null</tt> keys (optional). */ @@ -210,7 +210,7 @@ public class CompositeMap implements Map { * @return <tt>true</tt> if this map maps one or more keys to the * specified value. * @throws ClassCastException if the value is of an inappropriate type for - * this map (optional). + * this map (optional). * @throws NullPointerException if the value is <tt>null</tt> and this map * does not not permit <tt>null</tt> values (optional). */ @@ -263,12 +263,12 @@ public class CompositeMap implements Map { * * @param key key whose associated value is to be returned. * @return the value to which this map maps the specified key, or - * <tt>null</tt> if the map contains no mapping for this key. + * <tt>null</tt> if the map contains no mapping for this key. * * @throws ClassCastException if the key is of an inappropriate type for - * this map (optional). + * this map (optional). * @throws NullPointerException key is <tt>null</tt> and this map does not - * not permit <tt>null</tt> keys (optional). + * not permit <tt>null</tt> keys (optional). * * @see #containsKey(Object) */ @@ -329,16 +329,16 @@ public class CompositeMap implements Map { * @param key key with which the specified value is to be associated. * @param value value to be associated with the specified key. * @return previous value associated with specified key, or <tt>null</tt> - * if there was no mapping for key. A <tt>null</tt> return can - * also indicate that the map previously associated <tt>null</tt> - * with the specified key, if the implementation supports - * <tt>null</tt> values. + * if there was no mapping for key. A <tt>null</tt> return can + * also indicate that the map previously associated <tt>null</tt> + * with the specified key, if the implementation supports + * <tt>null</tt> values. * * @throws UnsupportedOperationException if no MapMutator has been specified * @throws ClassCastException if the class of the specified key or value - * prevents it from being stored in this map. + * prevents it from being stored in this map. * @throws IllegalArgumentException if some aspect of this key or value - * prevents it from being stored in this map. + * prevents it from being stored in this map. * @throws NullPointerException this map does not permit <tt>null</tt> * keys or values, and the specified key or value is * <tt>null</tt>. @@ -361,13 +361,13 @@ public class CompositeMap implements Map { * @param map Mappings to be stored in this map. * * @throws UnsupportedOperationException if the <tt>putAll</tt> method is - * not supported by this map. + * not supported by this map. * * @throws ClassCastException if the class of a key or value in the - * specified map prevents it from being stored in this map. + * specified map prevents it from being stored in this map. * * @throws IllegalArgumentException some aspect of a key or value in the - * specified map prevents it from being stored in this map. + * specified map prevents it from being stored in this map. * @throws NullPointerException the specified map is <tt>null</tt>, or if * this map does not permit <tt>null</tt> keys or values, and the * specified map contains <tt>null</tt> keys or values. @@ -395,10 +395,10 @@ public class CompositeMap implements Map { * * @param key key whose mapping is to be removed from the map. * @return previous value associated with specified key, or <tt>null</tt> - * if there was no mapping for key. + * if there was no mapping for key. * * @throws ClassCastException if the key is of an inappropriate type for - * the composited map (optional). + * the composited map (optional). * @throws NullPointerException if the key is <tt>null</tt> and the composited map * does not not permit <tt>null</tt> keys (optional). * @throws UnsupportedOperationException if the <tt>remove</tt> method is @@ -501,16 +501,16 @@ public class CompositeMap implements Map { * @param key key with which the specified value is to be associated. * @param value value to be associated with the specified key. * @return previous value associated with specified key, or <tt>null</tt> - * if there was no mapping for key. A <tt>null</tt> return can - * also indicate that the map previously associated <tt>null</tt> - * with the specified key, if the implementation supports - * <tt>null</tt> values. + * if there was no mapping for key. A <tt>null</tt> return can + * also indicate that the map previously associated <tt>null</tt> + * with the specified key, if the implementation supports + * <tt>null</tt> values. * * @throws UnsupportedOperationException if not defined * @throws ClassCastException if the class of the specified key or value - * prevents it from being stored in this map. + * prevents it from being stored in this map. * @throws IllegalArgumentException if some aspect of this key or value - * prevents it from being stored in this map. + * prevents it from being stored in this map. * @throws NullPointerException this map does not permit <tt>null</tt> * keys or values, and the specified key or value is * <tt>null</tt>. @@ -526,9 +526,9 @@ public class CompositeMap implements Map { * * @throws UnsupportedOperationException if not defined * @throws ClassCastException if the class of the specified key or value - * prevents it from being stored in this map. + * prevents it from being stored in this map. * @throws IllegalArgumentException if some aspect of this key or value - * prevents it from being stored in this map. + * prevents it from being stored in this map. * @throws NullPointerException this map does not permit <tt>null</tt> * keys or values, and the specified key or value is * <tt>null</tt>.