mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 16:39:37 +07:00
create method from method reference (IDEA-112556)
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
// "Create Constructor" "true"
|
||||
class FooBar {
|
||||
FooBar(int i) {
|
||||
}
|
||||
|
||||
{
|
||||
Runnable r = FooBar::new;
|
||||
}
|
||||
|
||||
public FooBar() {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// "Create Method 'fooBar'" "true"
|
||||
class FooBar {
|
||||
{
|
||||
Runnable r = FooBar::fooBar;
|
||||
}
|
||||
|
||||
private static void fooBar() {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// "Create Method 'fooBar'" "true"
|
||||
class FooBar {
|
||||
{
|
||||
Runnable r = this::fooBar;
|
||||
}
|
||||
|
||||
private void fooBar() {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// "Create Constructor" "true"
|
||||
class FooBar {
|
||||
FooBar(int i) {
|
||||
}
|
||||
|
||||
{
|
||||
Runnable r = FooBar::ne<caret>w;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// "Create Method 'fooBar'" "true"
|
||||
class FooBar {
|
||||
{
|
||||
Runnable r = FooBar::foo<caret>Bar;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// "Create Method 'fooBar'" "true"
|
||||
class FooBar {
|
||||
{
|
||||
Runnable r = this::foo<caret>Bar;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user