mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
method refs: rename methods
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
class MyTest {
|
||||
|
||||
static class Foo {
|
||||
}
|
||||
|
||||
interface I {
|
||||
Foo m();
|
||||
}
|
||||
static Foo f<caret>oo() { return null; }
|
||||
|
||||
public static void main(String[] args) {
|
||||
I i = MyTest::foo;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
class MyTest {
|
||||
|
||||
static class Foo {
|
||||
}
|
||||
|
||||
interface I {
|
||||
Foo m();
|
||||
}
|
||||
static Foo bar() { return null; }
|
||||
|
||||
public static void main(String[] args) {
|
||||
I i = MyTest::bar;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user