mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-21 13:20:56 +07:00
method references by second search would be called on lambda parameter so should not influence constant checks
14 lines
310 B
Java
14 lines
310 B
Java
|
|
import java.util.Comparator;
|
|
|
|
class Foo implements Comparable<Foo> {
|
|
|
|
public String getName() {
|
|
return "";
|
|
}
|
|
|
|
@Override
|
|
public int compareTo(final Foo o) {
|
|
return <selection>Comparator.comparing(Foo::getName, String.CASE_INSENSITIVE_ORDER)</selection>.compare(this, o);
|
|
}
|
|
} |