diff --git a/src/main/java/org/apache/commons/collections/keyvalue/AbstractMapEntryDecorator.java b/src/main/java/org/apache/commons/collections/keyvalue/AbstractMapEntryDecorator.java index 545a078ee..303255d03 100644 --- a/src/main/java/org/apache/commons/collections/keyvalue/AbstractMapEntryDecorator.java +++ b/src/main/java/org/apache/commons/collections/keyvalue/AbstractMapEntryDecorator.java @@ -56,17 +56,14 @@ public abstract class AbstractMapEntryDecorator implements Map.Entry //----------------------------------------------------------------------- - /** {@inheritDoc} */ public K getKey() { return entry.getKey(); } - /** {@inheritDoc} */ public V getValue() { return entry.getValue(); } - /** {@inheritDoc} */ public V setValue(V object) { return entry.setValue(object); } diff --git a/src/main/java/org/apache/commons/collections/list/AbstractLinkedList.java b/src/main/java/org/apache/commons/collections/list/AbstractLinkedList.java index 17457b288..642a25b43 100644 --- a/src/main/java/org/apache/commons/collections/list/AbstractLinkedList.java +++ b/src/main/java/org/apache/commons/collections/list/AbstractLinkedList.java @@ -100,17 +100,14 @@ public abstract class AbstractLinkedList implements List { //----------------------------------------------------------------------- - /** {@inheritDoc} */ public int size() { return size; } - /** {@inheritDoc} */ public boolean isEmpty() { return (size() == 0); } - /** {@inheritDoc} */ public E get(int index) { Node node = getNode(index, false); return node.getValue(); @@ -118,24 +115,20 @@ public abstract class AbstractLinkedList implements List { //----------------------------------------------------------------------- - /** {@inheritDoc} */ public Iterator iterator() { return listIterator(); } - /** {@inheritDoc} */ public ListIterator listIterator() { return new LinkedListIterator(this, 0); } - /** {@inheritDoc} */ public ListIterator listIterator(int fromIndex) { return new LinkedListIterator(this, fromIndex); } //----------------------------------------------------------------------- - /** {@inheritDoc} */ public int indexOf(Object value) { int i = 0; for (Node node = header.next; node != header; node = node.next) { @@ -147,7 +140,6 @@ public abstract class AbstractLinkedList implements List { return -1; } - /** {@inheritDoc} */ public int lastIndexOf(Object value) { int i = size - 1; for (Node node = header.previous; node != header; node = node.previous) { @@ -159,12 +151,10 @@ public abstract class AbstractLinkedList implements List { return -1; } - /** {@inheritDoc} */ public boolean contains(Object value) { return indexOf(value) != -1; } - /** {@inheritDoc} */ public boolean containsAll(Collection coll) { for (Object o : coll) { if (!contains(o)) { @@ -176,12 +166,10 @@ public abstract class AbstractLinkedList implements List { //----------------------------------------------------------------------- - /** {@inheritDoc} */ public Object[] toArray() { return toArray(new Object[size]); } - /** {@inheritDoc} */ @SuppressWarnings("unchecked") public T[] toArray(T[] array) { // Extend the array if needed @@ -214,24 +202,20 @@ public abstract class AbstractLinkedList implements List { //----------------------------------------------------------------------- - /** {@inheritDoc} */ public boolean add(E value) { addLast(value); return true; } - /** {@inheritDoc} */ public void add(int index, E value) { Node node = getNode(index, true); addNodeBefore(node, value); } - /** {@inheritDoc} */ public boolean addAll(Collection coll) { return addAll(size, coll); } - /** {@inheritDoc} */ public boolean addAll(int index, Collection coll) { Node node = getNode(index, true); for (E e : coll) { @@ -242,7 +226,6 @@ public abstract class AbstractLinkedList implements List { //----------------------------------------------------------------------- - /** {@inheritDoc} */ public E remove(int index) { Node node = getNode(index, false); E oldValue = node.getValue(); @@ -250,7 +233,6 @@ public abstract class AbstractLinkedList implements List { return oldValue; } - /** {@inheritDoc} */ public boolean remove(Object value) { for (Node node = header.next; node != header; node = node.next) { if (isEqualValue(node.getValue(), value)) { @@ -261,7 +243,6 @@ public abstract class AbstractLinkedList implements List { return false; } - /** {@inheritDoc} */ public boolean removeAll(Collection coll) { boolean modified = false; Iterator it = iterator(); @@ -276,7 +257,6 @@ public abstract class AbstractLinkedList implements List { //----------------------------------------------------------------------- - /** {@inheritDoc} */ public boolean retainAll(Collection coll) { boolean modified = false; Iterator it = iterator(); @@ -289,7 +269,6 @@ public abstract class AbstractLinkedList implements List { return modified; } - /** {@inheritDoc} */ public E set(int index, E value) { Node node = getNode(index, false); E oldValue = node.getValue(); @@ -297,7 +276,6 @@ public abstract class AbstractLinkedList implements List { return oldValue; } - /** {@inheritDoc} */ public void clear() { removeAllNodes(); } diff --git a/src/main/java/org/apache/commons/collections/list/AbstractListDecorator.java b/src/main/java/org/apache/commons/collections/list/AbstractListDecorator.java index fe07ebe36..dea4a8d7d 100644 --- a/src/main/java/org/apache/commons/collections/list/AbstractListDecorator.java +++ b/src/main/java/org/apache/commons/collections/list/AbstractListDecorator.java @@ -67,52 +67,42 @@ public abstract class AbstractListDecorator extends AbstractCollectionDecorat //----------------------------------------------------------------------- - /** {@inheritDoc} */ public void add(int index, E object) { decorated().add(index, object); } - /** {@inheritDoc} */ public boolean addAll(int index, Collection coll) { return decorated().addAll(index, coll); } - /** {@inheritDoc} */ public E get(int index) { return decorated().get(index); } - /** {@inheritDoc} */ public int indexOf(Object object) { return decorated().indexOf(object); } - /** {@inheritDoc} */ public int lastIndexOf(Object object) { return decorated().lastIndexOf(object); } - /** {@inheritDoc} */ public ListIterator listIterator() { return decorated().listIterator(); } - /** {@inheritDoc} */ public ListIterator listIterator(int index) { return decorated().listIterator(index); } - /** {@inheritDoc} */ public E remove(int index) { return decorated().remove(index); } - /** {@inheritDoc} */ public E set(int index, E object) { return decorated().set(index, object); } - /** {@inheritDoc} */ public List subList(int fromIndex, int toIndex) { return decorated().subList(fromIndex, toIndex); } diff --git a/src/main/java/org/apache/commons/collections/list/FixedSizeList.java b/src/main/java/org/apache/commons/collections/list/FixedSizeList.java index ee9595520..d350b12ca 100644 --- a/src/main/java/org/apache/commons/collections/list/FixedSizeList.java +++ b/src/main/java/org/apache/commons/collections/list/FixedSizeList.java @@ -170,12 +170,10 @@ public class FixedSizeList } } - /** {@inheritDoc} */ public boolean isFull() { return true; } - /** {@inheritDoc} */ public int maxSize() { return size(); } diff --git a/src/main/java/org/apache/commons/collections/list/PredicatedList.java b/src/main/java/org/apache/commons/collections/list/PredicatedList.java index 6458122c8..66d8b59d6 100644 --- a/src/main/java/org/apache/commons/collections/list/PredicatedList.java +++ b/src/main/java/org/apache/commons/collections/list/PredicatedList.java @@ -90,35 +90,29 @@ public class PredicatedList extends PredicatedCollection implements List coll) { for (E aColl : coll) { validate(aColl); @@ -126,23 +120,19 @@ public class PredicatedList extends PredicatedCollection implements List listIterator() { return listIterator(0); } - /** {@inheritDoc} */ public ListIterator listIterator(int i) { return new PredicatedListIterator(decorated().listIterator(i)); } - /** {@inheritDoc} */ public E set(int index, E object) { validate(object); return decorated().set(index, object); } - /** {@inheritDoc} */ public List subList(int fromIndex, int toIndex) { List sub = decorated().subList(fromIndex, toIndex); return new PredicatedList(sub, predicate); diff --git a/src/main/java/org/apache/commons/collections/list/SynchronizedList.java b/src/main/java/org/apache/commons/collections/list/SynchronizedList.java index cc46d11c2..88dbe7b0c 100644 --- a/src/main/java/org/apache/commons/collections/list/SynchronizedList.java +++ b/src/main/java/org/apache/commons/collections/list/SynchronizedList.java @@ -83,35 +83,30 @@ public class SynchronizedList extends SynchronizedCollection implements Li //----------------------------------------------------------------------- - /** {@inheritDoc} */ public void add(int index, E object) { synchronized (lock) { getList().add(index, object); } } - /** {@inheritDoc} */ public boolean addAll(int index, Collection coll) { synchronized (lock) { return getList().addAll(index, coll); } } - /** {@inheritDoc} */ public E get(int index) { synchronized (lock) { return getList().get(index); } } - /** {@inheritDoc} */ public int indexOf(Object object) { synchronized (lock) { return getList().indexOf(object); } } - /** {@inheritDoc} */ public int lastIndexOf(Object object) { synchronized (lock) { return getList().lastIndexOf(object); @@ -147,21 +142,18 @@ public class SynchronizedList extends SynchronizedCollection implements Li return getList().listIterator(index); } - /** {@inheritDoc} */ public E remove(int index) { synchronized (lock) { return getList().remove(index); } } - /** {@inheritDoc} */ public E set(int index, E object) { synchronized (lock) { return getList().set(index, object); } } - /** {@inheritDoc} */ public List subList(int fromIndex, int toIndex) { synchronized (lock) { List list = getList().subList(fromIndex, toIndex); diff --git a/src/main/java/org/apache/commons/collections/list/TransformedList.java b/src/main/java/org/apache/commons/collections/list/TransformedList.java index 84c20f983..fdbefd9bb 100644 --- a/src/main/java/org/apache/commons/collections/list/TransformedList.java +++ b/src/main/java/org/apache/commons/collections/list/TransformedList.java @@ -115,57 +115,47 @@ public class TransformedList extends TransformedCollection implements List //----------------------------------------------------------------------- - /** {@inheritDoc} */ public E get(int index) { return getList().get(index); } - /** {@inheritDoc} */ public int indexOf(Object object) { return getList().indexOf(object); } - /** {@inheritDoc} */ public int lastIndexOf(Object object) { return getList().lastIndexOf(object); } - /** {@inheritDoc} */ public E remove(int index) { return getList().remove(index); } //----------------------------------------------------------------------- - /** {@inheritDoc} */ public void add(int index, E object) { object = transform(object); getList().add(index, object); } - /** {@inheritDoc} */ public boolean addAll(int index, Collection coll) { coll = transform(coll); return getList().addAll(index, coll); } - /** {@inheritDoc} */ public ListIterator listIterator() { return listIterator(0); } - /** {@inheritDoc} */ public ListIterator listIterator(int i) { return new TransformedListIterator(getList().listIterator(i)); } - /** {@inheritDoc} */ public E set(int index, E object) { object = transform(object); return getList().set(index, object); } - /** {@inheritDoc} */ public List subList(int fromIndex, int toIndex) { List sub = getList().subList(fromIndex, toIndex); return new TransformedList(sub, transformer);