mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-03 16:47:50 +07:00
Also disabled for `orElseGet(() -> null)` as it would require more logic to check the lambda content and we already suggest to replace this with `orElse(null)` GitOrigin-RevId: ec86f715ef0f78c637447d5379a239016ecfd3b6
9 lines
224 B
Java
9 lines
224 B
Java
// "Unwrap" "false"
|
|
import java.util.*;
|
|
|
|
public class Tests {
|
|
private Optional<String> test(Optional<String> testOptional, String defaultVal) {
|
|
return Optional.ofNullable(testOptional.or<caret>Else(defaultVal));
|
|
}
|
|
}
|