mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-16 05:15:22 +00:00
8087115: Due to a javac type inference issue, sjavac doesn't compile with 8u31
Added explicit type arguments. Reviewed-by: jlahoda
This commit is contained in:
parent
3a31593507
commit
d19a3d76d3
@ -228,6 +228,6 @@ public class Util {
|
||||
|
||||
public static <I, T> Map<I, T> indexBy(Collection<? extends T> c,
|
||||
Function<? super T, ? extends I> indexFunction) {
|
||||
return c.stream().collect(Collectors.toMap(indexFunction, o -> o));
|
||||
return c.stream().collect(Collectors.<T, I, T>toMap(indexFunction, o -> o));
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user