mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-05 08:06:56 +07:00
10 lines
248 B
Java
10 lines
248 B
Java
// "Remove folded 'ifPresent()' call" "true"
|
|
import java.util.*;
|
|
|
|
class Test {
|
|
native Optional<String> getOptional();
|
|
|
|
void test(Optional<Test> opt) {
|
|
opt.map(Test::getOptional).<caret>ifPresent(x -> x.ifPresent(System.out::println));
|
|
}
|
|
} |