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 6343b5dae5cd210a33cc303650118df2e74e0ceb
Author: Gary Gregory <[email protected]>
AuthorDate: Thu Jul 9 19:35:51 2026 -0400

    Add missing Javadoc and tags.
---
 .../collections4/queue/UnmodifiableQueue.java      | 55 ++++++++++++++++++++++
 1 file changed, 55 insertions(+)

diff --git 
a/src/main/java/org/apache/commons/collections4/queue/UnmodifiableQueue.java 
b/src/main/java/org/apache/commons/collections4/queue/UnmodifiableQueue.java
index 4ada8fe4f..faaf5bd35 100644
--- a/src/main/java/org/apache/commons/collections4/queue/UnmodifiableQueue.java
+++ b/src/main/java/org/apache/commons/collections4/queue/UnmodifiableQueue.java
@@ -73,16 +73,33 @@ public final class UnmodifiableQueue<E>
         super((Queue<E>) queue);
     }
 
+    /**
+     * Always throws {@link UnsupportedOperationException}.
+     *
+     * @param object Ignored.
+     * @throws UnsupportedOperationException Always thrown.
+     */
     @Override
     public boolean add(final Object object) {
         throw new UnsupportedOperationException();
     }
 
+    /**
+     * Always throws {@link UnsupportedOperationException}.
+     *
+     * @param coll Ignored.
+     * @throws UnsupportedOperationException Always thrown.
+     */
     @Override
     public boolean addAll(final Collection<? extends E> coll) {
         throw new UnsupportedOperationException();
     }
 
+    /**
+     * Always throws {@link UnsupportedOperationException}.
+     *
+     * @throws UnsupportedOperationException Always thrown.
+     */
     @Override
     public void clear() {
         throw new UnsupportedOperationException();
@@ -93,11 +110,22 @@ public final class UnmodifiableQueue<E>
         return 
UnmodifiableIterator.unmodifiableIterator(decorated().iterator());
     }
 
+    /**
+     * Always throws {@link UnsupportedOperationException}.
+     *
+     * @param obj Ignored.
+     * @throws UnsupportedOperationException Always thrown.
+     */
     @Override
     public boolean offer(final E obj) {
         throw new UnsupportedOperationException();
     }
 
+    /**
+     * Always throws {@link UnsupportedOperationException}.
+     *
+     * @throws UnsupportedOperationException Always thrown.
+     */
     @Override
     public E poll() {
         throw new UnsupportedOperationException();
@@ -116,22 +144,43 @@ public final class UnmodifiableQueue<E>
         setCollection((Collection<E>) in.readObject());
     }
 
+    /**
+     * Always throws {@link UnsupportedOperationException}.
+     *
+     * @throws UnsupportedOperationException Always thrown.
+     */
     @Override
     public E remove() {
         throw new UnsupportedOperationException();
     }
 
+    /**
+     * Always throws {@link UnsupportedOperationException}.
+     *
+     * @param object Ignored.
+     * @throws UnsupportedOperationException Always thrown.
+     */
     @Override
     public boolean remove(final Object object) {
         throw new UnsupportedOperationException();
     }
 
+    /**
+     * Always throws {@link UnsupportedOperationException}.
+     *
+     * @param coll Ignored.
+     * @throws UnsupportedOperationException Always thrown.
+     */
     @Override
     public boolean removeAll(final Collection<?> coll) {
         throw new UnsupportedOperationException();
     }
 
     /**
+     * Always throws {@link UnsupportedOperationException}.
+     *
+     * @param filter Ignored.
+     * @throws UnsupportedOperationException Always thrown.
      * @since 4.4
      */
     @Override
@@ -139,6 +188,12 @@ public final class UnmodifiableQueue<E>
         throw new UnsupportedOperationException();
     }
 
+    /**
+     * Always throws {@link UnsupportedOperationException}.
+     *
+     * @param coll Ignored.
+     * @throws UnsupportedOperationException Always thrown.
+     */
     @Override
     public boolean retainAll(final Collection<?> coll) {
         throw new UnsupportedOperationException();

Reply via email to