mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-27 13:50:53 +07:00
13 lines
405 B
Java
13 lines
405 B
Java
// "Disable 'Extract to separate mapping method'" "false"
|
|
import java.util.*;
|
|
import java.util.stream.*;
|
|
|
|
public class Test {
|
|
void testFlatMap() {
|
|
// no direct method which would flatMap from long to int type, so intention is disabled here
|
|
Stream.of("xyz").flatMapToInt(x -> {
|
|
long <caret>y = x.length();
|
|
return IntStream.range(0, (int) y);
|
|
}).forEach(System.out::println);
|
|
}
|
|
} |