mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
class shadowing (IDEA-98828)
This commit is contained in:
+1
-1
@@ -249,7 +249,7 @@ public class ClassResolverProcessor extends BaseScopeProcessor implements NameHi
|
||||
if (!accessible) return true;
|
||||
if (aClass.hasModifierProperty(PsiModifier.PRIVATE)) {
|
||||
final PsiClass containingPlaceClass = PsiTreeUtil.getParentOfType(myPlace, PsiClass.class, false);
|
||||
if (containingPlaceClass != null && !PsiTreeUtil.isAncestor(containingPlaceClass, aClass, true)){
|
||||
if (containingPlaceClass != null && !PsiTreeUtil.isAncestor(containingPlaceClass, aClass, false)){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
+15
-1
@@ -95,4 +95,18 @@ class WithFileInputStream {
|
||||
private FileInputStream(String str) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class ContainingKlass {
|
||||
public static class Inner {
|
||||
}
|
||||
|
||||
private static class OuterInner {
|
||||
private static final class Inner {
|
||||
private Inner s() {
|
||||
return this;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user