mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-31 04:07:30 +07:00
GitOrigin-RevId: 9aaad61ae52463727c77930af532258ea16dd1da
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));
|
|
}
|
|
} |