blob: 441edc911e2fdb49a7da96fe3b2657b4fb3ce64f [file]
// "Replace 'map()' with 'flatMap()'" "true"
import java.util.*;
class Test {
native Optional<String> getOptional();
void test(Optional<Test> opt) {
/*0*/
/*1*/
/*2*/
opt.flatMap(Test::getOptional).ifPresent(System.out::println);
}
}