mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 17:20:54 +07:00
19 lines
386 B
Java
19 lines
386 B
Java
// "Replace with method reference" "true-preview"
|
|
class Test {
|
|
interface I {}
|
|
interface Bar extends I {
|
|
int compare(String o1, String o2);
|
|
}
|
|
static int c(String o1, String o2) {
|
|
return 0;
|
|
}
|
|
|
|
{
|
|
I bar2 = new B<caret>ar() {
|
|
@Override
|
|
public int compare(final String o1, final String o2) {
|
|
return c(o1, o2);
|
|
}
|
|
};
|
|
}
|
|
} |