mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-06 08:00:18 +07:00
GitOrigin-RevId: 9aaad61ae52463727c77930af532258ea16dd1da
12 lines
312 B
Java
12 lines
312 B
Java
// "Remove folded 'ifPresent()' call" "true"
|
|
import java.util.*;
|
|
|
|
class Test {
|
|
native String getNonOptional();
|
|
|
|
static native Optional<String> getOptional(Test v);
|
|
|
|
void test(Optional<Test> opt) {
|
|
opt.map(Test::getNonOptional).<caret>ifPresent(x -> getOptional(x).ifPresent(System.out::println));
|
|
}
|
|
} |