method ref: create method from usages accept method ref in argument

This commit is contained in:
anna
2012-09-25 16:20:52 +02:00
parent da860a5f6d
commit d2af36382c
3 changed files with 26 additions and 1 deletions

View File

@@ -0,0 +1,14 @@
// "Create Method 'f'" "true"
class A {
{
f(A::foo);
}
private void f(Object foo) {
<selection>//To change body of created methods use File | Settings | File Templates.</selection>
}
static int foo() {
return 42;
}
}

View File

@@ -0,0 +1,9 @@
// "Create Method 'f'" "true"
class A {
{
f<caret>(A::foo);
}
static int foo() {
return 42;
}
}