mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-02 09:22:02 +07:00
8 lines
237 B
Java
8 lines
237 B
Java
// "Fix all 'Optional call chain can be simplified' problems in file" "false"
|
|
import java.util.Optional;
|
|
|
|
public class Test {
|
|
String test(Optional<String> opt) {
|
|
return opt.map(x -> x.isEmpty() ? null : ).or<caret>Else(null);
|
|
}
|
|
} |