mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
TrivialFunctionalExpressionUsageInspection: disable for multi-statement lambda in "for" init/update
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
// "Replace method call on lambda with lambda body" "false"
|
||||
|
||||
public class Main {
|
||||
public static void main(String[] args) {
|
||||
int i = 0;
|
||||
for (((Runnable) (() -> {
|
||||
System.out.println("Hello");
|
||||
System.out.println("World");
|
||||
})).r<caret>un(); i < 10; ) {
|
||||
System.out.println(i++);
|
||||
}
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
// "Replace method call on lambda with lambda body" "false"
|
||||
|
||||
public class Main {
|
||||
public static void main(String[] args) {
|
||||
for (int i = 0; i < 10; ((Runnable) (() -> {
|
||||
System.out.println("Hello");
|
||||
System.out.println("World");
|
||||
return;
|
||||
})).ru<caret>n()) {
|
||||
System.out.println(i++);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user