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 14250d644d92f456989136f13d3aa52e6dc52d90 Author: Gary Gregory <[email protected]> AuthorDate: Thu Jul 9 19:39:08 2026 -0400 Add missing Javadoc and tags. --- .../commons/collections4/set/UnmodifiableSet.java | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/src/main/java/org/apache/commons/collections4/set/UnmodifiableSet.java b/src/main/java/org/apache/commons/collections4/set/UnmodifiableSet.java index d79a34235..4f8130f87 100644 --- a/src/main/java/org/apache/commons/collections4/set/UnmodifiableSet.java +++ b/src/main/java/org/apache/commons/collections4/set/UnmodifiableSet.java @@ -72,16 +72,33 @@ public final class UnmodifiableSet<E> super((Set<E>) set); } + /** + * Always throws {@link UnsupportedOperationException}. + * + * @param object Ignored. + * @throws UnsupportedOperationException Always thrown. + */ @Override public boolean add(final E 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(); @@ -92,17 +109,33 @@ public final class UnmodifiableSet<E> return UnmodifiableIterator.unmodifiableIterator(decorated().iterator()); } + /** + * 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 @@ -110,6 +143,12 @@ public final class UnmodifiableSet<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();
