completion: infer Throwable for thrown bounds in completion so more candidates would be applicable (IDEA-162710)

This commit is contained in:
Anna.Kozlova
2016-10-20 13:14:23 +02:00
parent f455e517e0
commit 8952680a73
6 changed files with 46 additions and 1 deletions
@@ -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)) {