mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 15:50:53 +07:00
13 lines
407 B
Java
13 lines
407 B
Java
// "Cast expression to 'java.lang.String'" "false"
|
|
import java.util.function.Predicate;
|
|
import java.util.function.Supplier;
|
|
|
|
class X {
|
|
public static String getOrDefault(String prefer, Supplier<String> def) {
|
|
return getOrDefault(() -> prefer, String::isEmpty, def<caret>.get());
|
|
}
|
|
|
|
public static <T> T getOrDefault(Supplier<T> prefer, Predicate<T> abandon, Supplier<T> def) {
|
|
return null;
|
|
}
|
|
} |