mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
check accessibility without access object (IDEA-67220)
This commit is contained in:
+1
-1
@@ -84,7 +84,7 @@ public class GenerateConstructorHandler extends GenerateMembersHandlerBase {
|
||||
if (baseClass != null){
|
||||
ArrayList<PsiMethod> array = new ArrayList<PsiMethod>();
|
||||
for (PsiMethod method : baseClass.getConstructors()) {
|
||||
if (JavaPsiFacade.getInstance(method.getProject()).getResolveHelper().isAccessible(method, aClass, aClass)) {
|
||||
if (JavaPsiFacade.getInstance(method.getProject()).getResolveHelper().isAccessible(method, aClass, null)) {
|
||||
array.add(method);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user