mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-08 21:52:48 +07:00
GitOrigin-RevId: 571a82f66623887c1b5008963df842b2597c58c9
12 lines
317 B
Java
12 lines
317 B
Java
// "Remove 'comparing()' call" "true-preview"
|
|
import java.util.Comparator;
|
|
import java.util.function.Function;
|
|
|
|
public class MyFile {
|
|
interface Foo extends Function<String, Integer> {}
|
|
|
|
void test(Foo comparator) {
|
|
Comparator<String> cmp = Comparator.comparing(String::length).thenComparing(comparator);
|
|
}
|
|
}
|