remove this qualifier on anonym -> method ref fix

This commit is contained in:
Anna Kozlova
2015-10-28 18:14:50 +01:00
parent 413dce7548
commit 543e5f3cdf
4 changed files with 46 additions and 7 deletions

View File

@@ -0,0 +1,12 @@
// "Replace with method reference" "true"
class Test {
private void doTest (){}
void foo(Runnable r){}
{
foo (this::doTest);
}
}

View File

@@ -0,0 +1,17 @@
// "Replace with method reference" "true"
class Test {
private void doTest (){}
void foo(Runnable r){}
{
foo (new Ru<caret>nnable() {
@Override
public void run() {
doTest();
}
});
}
}