Skip to content

Commit

Permalink
Fix generics on Multimap.forEachKeyMultiValues().
Browse files Browse the repository at this point in the history
  • Loading branch information
motlin committed Apr 22, 2016
1 parent bc9500b commit 1417fed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,9 @@ public interface Multimap<K, V>
* {@code [ ["key1", {@link RichIterable["val1", "val2", "val2"]}], ["key2", {@link RichIterable["val3"]}] ]}
*
* @since 6.0
* @param procedure
*/
void forEachKeyMultiValues(Procedure2<K, ? super Iterable<V>> procedure);
void forEachKeyMultiValues(Procedure2<? super K, ? super Iterable<V>> procedure);

/**
* Returns the number of key-value entry pairs.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ public void value(K key, C collection)
});
}

public void forEachKeyMultiValues(Procedure2<K, ? super Iterable<V>> procedure)
public void forEachKeyMultiValues(Procedure2<? super K, ? super Iterable<V>> procedure)
{
this.getMap().forEachKeyValue(procedure);
}
Expand Down

0 comments on commit 1417fed

Please sign in to comment.