mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
completion: infer Throwable for thrown bounds in completion so more candidates would be applicable (IDEA-162710)
This commit is contained in:
+5
@@ -48,6 +48,11 @@ public class CompletionParameterTypeInferencePolicy extends ProcessCandidatePara
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean inferRuntimeExceptionForThrownBoundWithNoConstraints() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public PsiType adjustInferredType(PsiManager manager, PsiType guess, ConstraintType constraintType) {
|
||||
if (guess != null && !(guess instanceof PsiWildcardType)) {
|
||||
|
||||
Reference in New Issue
Block a user