mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
don't suggest inaccessible functional interfaces (IDEA-174008)
This commit is contained in:
@@ -76,6 +76,9 @@ public class FunctionalInterfaceSuggester {
|
||||
}
|
||||
|
||||
return suggestFunctionalInterfaces(method, aClass -> {
|
||||
if (!JavaPsiFacade.getInstance(method.getProject()).getResolveHelper().isAccessible(aClass, method, null)) {
|
||||
return null;
|
||||
}
|
||||
final PsiMethod interfaceMethod = LambdaUtil.getFunctionalInterfaceMethod(aClass);
|
||||
if (interfaceMethod != null) {
|
||||
final PsiParameter[] parameters = method.getParameterList().getParameters();
|
||||
|
||||
Reference in New Issue
Block a user