mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
method refs: don't collect method thrown types if asked outside functional interface check
This commit is contained in:
@@ -266,7 +266,9 @@ public class ExceptionUtil {
|
||||
unhandledExceptions = getUnhandledExceptions(expression, topElement, includeSelfCalls);
|
||||
}
|
||||
else if (element instanceof PsiMethodReferenceExpression) {
|
||||
unhandledExceptions = getUnhandledExceptions((PsiMethodReferenceExpression)element, topElement);
|
||||
PsiExpression qualifierExpression = ((PsiMethodReferenceExpression)element).getQualifierExpression();
|
||||
return qualifierExpression != null ? collectUnhandledExceptions(qualifierExpression, topElement, null, false)
|
||||
: Collections.<PsiClassType>emptySet();
|
||||
}
|
||||
else if (element instanceof PsiLambdaExpression) {
|
||||
return Collections.emptySet();
|
||||
|
||||
Reference in New Issue
Block a user