garydgregory commented on a change in pull request #110:
URL:
https://github.com/apache/commons-collections/pull/110#discussion_r417296559
##########
File path:
src/main/java/org/apache/commons/collections4/multimap/AbstractMultiValuedMap.java
##########
@@ -879,7 +879,8 @@ public boolean remove(final Object o) {
public Map.Entry<K, Collection<V>> next() {
final Map.Entry<K, Collection<V>> entry = super.next();
final K key = entry.getKey();
- return new UnmodifiableMapEntry<>(key, wrappedCollection(key));
+ final Collection<V> value = entry.getValue();
+ return new UnmodifiableMapEntry<>(key, value);
Review comment:
You can just inline `key` and `value` IMO.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]