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