Add test case for the SimplifyStreamApiCallChainsInspectionFixTest

GitOrigin-RevId: aa076ded2e9a1506288e0798c2031e913819a927
This commit is contained in:
Andrey.Cherkasov
2021-06-22 19:51:50 +00:00
committed by intellij-monorepo-bot
parent cbe208fba4
commit 16c77ee931
2 changed files with 19 additions and 0 deletions
@@ -0,0 +1,10 @@
// "Replace List.of().stream() with Stream.of()" "true"
import java.util.List;
import java.util.stream.Stream;
class Test {
void test() {
Stream.of(new int[]{1, 2, 3, 42}).forEach(System.out::println);
}
}
@@ -0,0 +1,9 @@
// "Replace List.of().stream() with Stream.of()" "true"
import java.util.List;
class Test {
void test() {
List.of(new int[]{1, 2, 3, 42}).st<caret>ream().forEach(System.out::println);
}
}