mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 18:09:38 +07:00
9 lines
197 B
Java
9 lines
197 B
Java
// "Use 'orElseGet' method with functional argument" "false"
|
|
|
|
import java.util.Optional;
|
|
|
|
class Test {
|
|
public void test(Optional<String> opt) {
|
|
String result = opt.orElse("f<caret>oo");
|
|
}
|
|
} |