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 fbf71b74369874329460290b406c5837b1ee4728 Author: Gary Gregory <[email protected]> AuthorDate: Thu Jul 9 19:41:30 2026 -0400 Inline single-use local variables. --- .../collections4/trie/UnmodifiableTrie.java | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/main/java/org/apache/commons/collections4/trie/UnmodifiableTrie.java b/src/main/java/org/apache/commons/collections4/trie/UnmodifiableTrie.java index c5591052a..156ee17be 100644 --- a/src/main/java/org/apache/commons/collections4/trie/UnmodifiableTrie.java +++ b/src/main/java/org/apache/commons/collections4/trie/UnmodifiableTrie.java @@ -78,6 +78,11 @@ public class UnmodifiableTrie<K, V> implements Trie<K, V>, Serializable, Unmodif this.delegate = tmpTrie; } + /** + * Always throws {@link UnsupportedOperationException}. + * + * @throws UnsupportedOperationException Always thrown. + */ @Override public void clear() { throw new UnsupportedOperationException(); @@ -164,16 +169,35 @@ public class UnmodifiableTrie<K, V> implements Trie<K, V>, Serializable, Unmodif return delegate.previousKey(key); } + /** + * Always throws {@link UnsupportedOperationException}. + * + * @param key Ignored. + * @param value Ignored. + * @throws UnsupportedOperationException Always thrown. + */ @Override public V put(final K key, final V value) { throw new UnsupportedOperationException(); } + /** + * Always throws {@link UnsupportedOperationException}. + * + * @param m Ignored. + * @throws UnsupportedOperationException Always thrown. + */ @Override public void putAll(final Map<? extends K, ? extends V> m) { throw new UnsupportedOperationException(); } + /** + * Always throws {@link UnsupportedOperationException}. + * + * @param key Ignored. + * @throws UnsupportedOperationException Always thrown. + */ @Override public V remove(final Object key) { throw new UnsupportedOperationException();
