mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-23 07:11:04 +07:00
0d10ba565e
GitOrigin-RevId: faa9f564b7a37e4c1165c24f904994b951adfccd
12 lines
301 B
Java
12 lines
301 B
Java
// "Fix all ''Optional' can be replaced with sequence of 'if' statements' problems in file" "true"
|
|
|
|
import java.util.Optional;
|
|
import java.util.stream.Stream;
|
|
|
|
class Test {
|
|
|
|
void stream(String in) {
|
|
Stream<String> out = Optional.<caret>of(in).map(s -> s.length() > 2 ? s : null).stream();
|
|
}
|
|
|
|
} |