mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-25 10:51:06 +07:00
6 lines
213 B
Java
6 lines
213 B
Java
// "Remove 'comparingInt()' call and use 'thenComparingInt()'" "true-preview"
|
|
import java.util.*;
|
|
|
|
class Test {
|
|
Comparator<String> cmp = Comparator.comparing(String::length).thenComparingInt(s -> s.charAt(1));
|
|
} |