mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-06-13 09:34:32 +07:00
redundant type arguments: check all methods applicability till top level (IDEA-166696)
This commit is contained in:
+12
@@ -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)));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user