mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 15:09:39 +07:00
disable conversion from anonymous if method has javadoc
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
// "Replace with lambda" "false"
|
||||
class Test {
|
||||
{
|
||||
Runnable r = new Ru<caret>nnable() {
|
||||
/**
|
||||
* important javadoc
|
||||
*/
|
||||
@Override
|
||||
public void run() {
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -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();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user