redundant type arguments: check all methods applicability till top level (IDEA-166696)

This commit is contained in:
Anna Kozlova
2017-01-19 17:25:30 +03:00
parent ac44e446fb
commit f28bfb5bcb
2 changed files with 27 additions and 1 deletions
@@ -0,0 +1,12 @@
// "Remove explicit type arguments" "false"
import java.util.*;
import java.util.function.Function;
import java.util.stream.Collectors;
class Test {
void foo(List<String> input, Function<String, Integer> length) {
input.stream().collect(Collectors.groupingBy(length,
Collectors.collectingAndThen(Collectors.<St<caret>ring>maxBy(Comparator.naturalOrder()), Optional::get)));
}
}