blob: 8bf30a5f72d8908782ff609b4675b2751e1640ba [file]
// "Remove redundant steps from optional chain" "true"
import java.util.Optional;
public class Test {
public Optional<String> test() {
return getOpt().map(Optional::of).orEl<caret>se(Optional.empty());
}
private Optional<String> getOpt() {
return Optional.of("foo");
}
}