mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-27 01:42:17 +07:00
GitOrigin-RevId: 9aaad61ae52463727c77930af532258ea16dd1da
10 lines
250 B
Java
10 lines
250 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).flatMap(Test::getOptional).ifPresent(System.out::println);
|
|
}
|
|
} |