s8sankalp commented on code in PR #706:
URL: 
https://github.com/apache/commons-collections/pull/706#discussion_r3559311761


##########
src/main/java/org/apache/commons/collections4/multimap/AbstractMultiValuedMapDecorator.java:
##########
@@ -130,6 +130,13 @@ public Set<K> keySet() {
         return decorated().keySet();
     }
 
+    /**
+     * {@inheritDoc}
+     * <p>
+     * The returned map iterator's {@link MapIterator#setValue(Object)} method 
is not supported
+     * and will throw an {@link UnsupportedOperationException}.
+     * </p>
+     */

Review Comment:
   @garydgregory 
   Good catch. AbstractMultiValuedMapDecorator simply delegates mapIterator() 
to the wrapped MultiValuedMap, so it cannot guarantee the behavior of 
MapIterator#setValue() for all implementations. I've removed the incorrect 
Javadoc and pushed the update. Thanks!



-- 
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]

Reply via email to