mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
StreamApiMigration: fixed exception when void expression is used as method argument
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
// "Replace with forEach" "true"
|
||||
|
||||
import java.util.stream.IntStream;
|
||||
|
||||
public class Test {
|
||||
void foo(int i) {}
|
||||
|
||||
void test() {
|
||||
IntStream.range(0, 10).forEach(i -> System.out.println(foo(i)));
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
// "Replace with forEach" "true"
|
||||
|
||||
public class Test {
|
||||
void foo(int i) {}
|
||||
|
||||
void test() {
|
||||
f<caret>or(int i=0; i<10; i++) {
|
||||
System.out.println(foo(i));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user