rootvector2 commented on code in PR #718:
URL:
https://github.com/apache/commons-collections/pull/718#discussion_r3673501817
##########
src/main/java/org/apache/commons/collections4/SplitMapUtils.java:
##########
@@ -131,9 +131,15 @@ public void putAll(final Map<? extends K, ? extends V>
map) {
throw new UnsupportedOperationException();
}
+ /**
+ * Always throws {@link UnsupportedOperationException}.
+ *
+ * @param key Ignored.
+ * @throws UnsupportedOperationException Always thrown.
+ */
@Override
public V remove(final Object key) {
- return get.remove(key);
+ throw new UnsupportedOperationException();
Review Comment:
reworded to describe the key. the `Ignored.` wording was copied from the
`put`/`putAll` javadoc right above, left those as they are on master.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]