disable conversion from anonymous if method has javadoc

This commit is contained in:
Anna Kozlova
2016-05-31 18:38:26 +03:00
parent feb8a473f4
commit a68cb4dfd3
5 changed files with 80 additions and 13 deletions
@@ -0,0 +1,13 @@
// "Replace with method reference" "true"
class Test {
private void doTest (){}
void foo(Runnable r){}
{
//some comment
foo (this::doTest);
}
}
@@ -0,0 +1,18 @@
// "Replace with method reference" "true"
class Test {
private void doTest (){}
void foo(Runnable r){}
{
foo (new Ru<caret>nnable() {
@Override
public void run() {
//some comment
doTest();
}
});
}
}