mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
Fixes IDEA-310129 IDE hint a wrong position of Java method param compile error Also: AdaptExpressionTypeFixUtil: try to determine wrong parameter even if several parameter types mention type parameter Also: AdaptExpressionTypeFixUtil: new type mismatch fix to replace call with qualifier GitOrigin-RevId: fbc63c0eb3415983ccf52ed5ade15b5895b65b21
13 lines
399 B
Java
13 lines
399 B
Java
// "Replace 3rd argument with qualifier" "true-preview"
|
|
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);
|
|
}
|
|
|
|
public static <T> T getOrDefault(Supplier<T> prefer, Predicate<T> abandon, Supplier<T> def) {
|
|
return null;
|
|
}
|
|
} |