mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 18:09:38 +07:00
13 lines
427 B
Java
13 lines
427 B
Java
// "Remove 'comparing()' call" "false"
|
|
import java.util.Comparator;
|
|
import java.util.function.Function;
|
|
|
|
public class MyFile {
|
|
interface Foo extends Function<String, Integer>, Comparator<String> {}
|
|
|
|
void test(Foo comparator) {
|
|
// replacement will make the call ambiguous, thus not suggested
|
|
Comparator<String> cmp = Comparator.comparing(String::length).thenComparing(Comparator.comp<caret>aring(comparator));
|
|
}
|
|
}
|