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:29 UTC
(commons-collections) 29/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 3bde84b73342b4546526ee904923bd6bb27bddfe
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu Jul 9 19:23:15 2026 -0400
Add missing Javadoc and tags.
---
.../commons/collections4/map/SingletonMap.java | 21 ++++++++++++++++-----
1 file changed, 16 insertions(+), 5 deletions(-)
diff --git a/src/main/java/org/apache/commons/collections4/map/SingletonMap.java b/src/main/java/org/apache/commons/collections4/map/SingletonMap.java
index cf3383e92..af383c548 100644
--- a/src/main/java/org/apache/commons/collections4/map/SingletonMap.java
+++ b/src/main/java/org/apache/commons/collections4/map/SingletonMap.java
@@ -121,6 +121,11 @@ public class SingletonMap<K, V>
return parent.getKey();
}
+ /**
+ * Always throws {@link UnsupportedOperationException}.
+ *
+ * @throws UnsupportedOperationException Always thrown.
+ */
@Override
public void remove() {
throw new UnsupportedOperationException();
@@ -162,6 +167,11 @@ public class SingletonMap<K, V>
this.parent = parent;
}
+ /**
+ * Always throws {@link UnsupportedOperationException}.
+ *
+ * @throws UnsupportedOperationException Always thrown.
+ */
@Override
public void clear() {
throw new UnsupportedOperationException();
@@ -248,7 +258,9 @@ public class SingletonMap<K, V>
}
/**
- * Unsupported operation.
+ * Always throws {@link UnsupportedOperationException}.
+ *
+ * @throws UnsupportedOperationException Always thrown.
*/
@Override
public void clear() {
@@ -533,11 +545,10 @@ public class SingletonMap<K, V>
}
/**
- * Unsupported operation.
+ * Always throws {@link UnsupportedOperationException}.
*
- * @param key the mapping to remove
- * @return the value mapped to the removed key, null if key not in map
- * @throws UnsupportedOperationException always
+ * @param key Ignored.
+ * @throws UnsupportedOperationException Always thrown.
*/
@Override
public V remove(final Object key) {