mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
good code red: applicability check for non-generic method requires types calculation
This commit is contained in:
@@ -474,8 +474,7 @@ public class ExceptionUtil {
|
||||
PsiElement element = info.getElement();
|
||||
if (info instanceof MethodCandidateInfo &&
|
||||
MethodSignatureUtil.areSignaturesEqual(method, (PsiMethod)element) &&
|
||||
!MethodSignatureUtil.isSuperMethod((PsiMethod)element, method) &&
|
||||
((MethodCandidateInfo)info).isApplicable()) {
|
||||
!MethodSignatureUtil.isSuperMethod((PsiMethod)element, method)) {
|
||||
return Pair.create((PsiMethod)element, ((MethodCandidateInfo)info).getSubstitutor(false));
|
||||
}
|
||||
return null;
|
||||
|
||||
+17
@@ -29,3 +29,20 @@ class Reproduction
|
||||
V apply(String s) throws IOException;
|
||||
}
|
||||
}
|
||||
|
||||
class InferenceInVarargsParam {
|
||||
static class Pair<A, B> {
|
||||
static <T, K> Pair<T, K> create(T t, K k) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
protected void assertPathListEditor(String text, Pair<String, Boolean>... expectedTableItems) throws Exception {}
|
||||
|
||||
void testPathListSettingsEditor() throws Exception {
|
||||
assertPathListEditor("",
|
||||
Pair.create("foo", false),
|
||||
Pair.create("bar", true),
|
||||
Pair.create("$(PROJECT_DIR)/hello", false),
|
||||
Pair.create("$(PROJECT_DIR)/hello", true));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user