blob: c2ab7323e0e2ff2aa48fa4adb950cff67d7b8c5c [file]
// "Replace 'map()' with 'flatMap()'" "true"
import java.util.*;
class Test {
void test() {
Optional<Test> opt = Optional.of(new Test());
/*0*/
/*1*/
opt.flatMap(a -> Optional.of("foo")).ifPresent(System.out::println);
}
}