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:
Andreas Lundblad 2015-06-10 11:18:10 +02:00
parent 3a31593507
commit d19a3d76d3

View File

@ -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));
}
}