mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-06 01:06:54 +07:00
Fixes IDEA-294679 False positive redundant step in 'Stream' or 'Optional' chain GitOrigin-RevId: 2de23e77c578c6983935b9aadd8a09b319b2efaa
12 lines
249 B
Java
12 lines
249 B
Java
import java.util.stream.Stream;
|
|
|
|
// IDEA-294679
|
|
public class Demo {
|
|
public static void main(String[] args) {
|
|
Stream.of(1)
|
|
.map(x -> Stream.<Object[]>of(new Object[] {x}))
|
|
.flatMap(t -> t)
|
|
.forEach(System.out::println);
|
|
}
|
|
}
|