You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2026/07/09 23:48:45 UTC
(commons-collections) 45/49: Add missing Javadoc and tags.
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 4566cdaa4c25e84f568ddf685fdd95b0d4446f3a
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu Jul 9 19:40:30 2026 -0400
Add missing Javadoc and tags.
---
.../collections4/set/UnmodifiableSortedSet.java | 38 ++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/src/main/java/org/apache/commons/collections4/set/UnmodifiableSortedSet.java b/src/main/java/org/apache/commons/collections4/set/UnmodifiableSortedSet.java
index 57fe29e8d..237de8619 100644
--- a/src/main/java/org/apache/commons/collections4/set/UnmodifiableSortedSet.java
+++ b/src/main/java/org/apache/commons/collections4/set/UnmodifiableSortedSet.java
@@ -72,16 +72,33 @@ public final class UnmodifiableSortedSet<E>
super(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();
@@ -111,17 +128,33 @@ public final class UnmodifiableSortedSet<E>
setCollection((Collection<E>) in.readObject()); // (1)
}
+ /**
+ * 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
@@ -129,6 +162,11 @@ public final class UnmodifiableSortedSet<E>
throw new UnsupportedOperationException();
}
+ /**
+ * Always throws {@link UnsupportedOperationException}.
+ *
+ * @throws UnsupportedOperationException Always thrown.
+ */
@Override
public boolean retainAll(final Collection<?> coll) {
throw new UnsupportedOperationException();