mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-03 15:50:52 +07:00
block lambda -> expr: disable if found comments outside of expression (IDEA-131749)
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
// "Replace with expression lambda" "true"
|
||||
class Test {
|
||||
{
|
||||
Runnable r = () -> System.out.println(""//todo comment
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
// "Replace with expression lambda" "false"
|
||||
class Test {
|
||||
{
|
||||
a(() -> {
|
||||
//my comment here
|
||||
ret<caret>urn new Object(){};
|
||||
});
|
||||
}
|
||||
|
||||
void a(Supplier<Object> s) {}
|
||||
void a(AI<Object> s) {}
|
||||
|
||||
interface AI<K> {
|
||||
void m();
|
||||
}
|
||||
interface Supplier<T> {
|
||||
T get();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// "Replace with expression lambda" "true"
|
||||
class Test {
|
||||
{
|
||||
Runnable r = () -> <caret>{
|
||||
System.out.println(""//todo comment
|
||||
);
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user