mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-03 15:50:52 +07:00
lambda: remove redundant code block inspection accept void compatible lambda & nested blocks (IDEA-91184)
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
// "Replace with one line expression" "true"
|
||||
class Test {
|
||||
{
|
||||
Runnable c = () -> System.out.println();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// "Replace with one line expression" "true"
|
||||
class Test {
|
||||
{
|
||||
Runnable c = () -> System.out.println();
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
// "Replace with one line expression" "true"
|
||||
class Test {
|
||||
{
|
||||
Comparable<String> c = (o) -> {r<caret>eturn 0};
|
||||
Comparable<String> c = (o) -> {r<caret>eturn 0;};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// "Replace with one line expression" "true"
|
||||
class Test {
|
||||
{
|
||||
Runnable c = () -> <caret>{System.out.println();};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// "Replace with one line expression" "true"
|
||||
class Test {
|
||||
{
|
||||
Runnable c = () -> <caret>{{System.out.println();}};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user