diff --git a/src/main/java/org/apache/commons/collections4/iterators/AbstractEmptyMapIterator.java b/src/main/java/org/apache/commons/collections4/iterators/AbstractEmptyMapIterator.java index 446e4bb93..d6499a16e 100644 --- a/src/main/java/org/apache/commons/collections4/iterators/AbstractEmptyMapIterator.java +++ b/src/main/java/org/apache/commons/collections4/iterators/AbstractEmptyMapIterator.java @@ -31,15 +31,34 @@ public abstract class AbstractEmptyMapIterator extends AbstractEmptyIterat public AbstractEmptyMapIterator() { } + /** + * Always throws IllegalStateException. + * + * @return Always throws IllegalStateException. + * @throws IllegalStateException Always thrown. + */ public K getKey() { throw new IllegalStateException("Iterator contains no elements"); } + /** + * Always throws IllegalStateException. + * + * @return Always throws IllegalStateException. + * @throws IllegalStateException Always thrown. + */ public V getValue() { throw new IllegalStateException("Iterator contains no elements"); } - public V setValue(final V value) { + /** + * Always throws IllegalStateException. + * + * @param ignored ignored. + * @return Always throws IllegalStateException. + * @throws IllegalStateException Always thrown. + */ + public V setValue(final V ignored) { throw new IllegalStateException("Iterator contains no elements"); }