This is an automated email from the ASF dual-hosted git repository.

garydgregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-collections.git

commit a550fb3e0924a852acb451aa93b73502a22f4403
Author: Gary Gregory <[email protected]>
AuthorDate: Thu Jul 9 19:03:04 2026 -0400

    Better Javadoc
---
 .../collections4/iterators/FilterListIterator.java    | 19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 deletions(-)

diff --git 
a/src/main/java/org/apache/commons/collections4/iterators/FilterListIterator.java
 
b/src/main/java/org/apache/commons/collections4/iterators/FilterListIterator.java
index 4ec417ae5..846731b5c 100644
--- 
a/src/main/java/org/apache/commons/collections4/iterators/FilterListIterator.java
+++ 
b/src/main/java/org/apache/commons/collections4/iterators/FilterListIterator.java
@@ -108,9 +108,10 @@ public class FilterListIterator<E> implements 
ListIterator<E> {
     }
 
     /**
-     * Not supported.
+     * Always throws {@link UnsupportedOperationException}.
      *
-     * @param o the element to insert
+     * @param o ignored.
+     * @throws UnsupportedOperationException Always thrown.
      */
     @Override
     public void add(final E o) {
@@ -187,20 +188,24 @@ public class FilterListIterator<E> implements 
ListIterator<E> {
         return nextIndex - 1;
     }
 
-    /** Not supported. */
+    /**
+     * Always throws {@link UnsupportedOperationException}.
+     *
+     * @throws UnsupportedOperationException Always thrown.
+     */
     @Override
     public void remove() {
         throw new UnsupportedOperationException("FilterListIterator.remove() 
is not supported.");
     }
 
     /**
-     * Not supported.
+     * Always throws {@link UnsupportedOperationException}.
      *
-     * @param ignored the element with which to replace the last element 
returned by
-     *          {@code next} or {@code previous}
+     * @param e ignored.
+     * @throws UnsupportedOperationException Always thrown.
      */
     @Override
-    public void set(final E ignored) {
+    public void set(final E e) {
         throw new 
UnsupportedOperationException("FilterListIterator.set(Object) is not 
supported.");
     }
 

Reply via email to