mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-13 21:55:01 +07:00
visibility: fix target
This commit is contained in:
+1
-1
@@ -378,7 +378,7 @@ public class VisibilityInspection extends GlobalJavaBatchInspectionTool {
|
||||
RefClass toOwner = refUtil.getOwnerClass(to);
|
||||
|
||||
if (accessModifier == PsiModifier.PROTECTED) {
|
||||
if (from instanceof RefJavaElementImpl && ((RefJavaElementImpl)from).isUsedQualifiedOutsidePackage()) {
|
||||
if (to instanceof RefJavaElementImpl && ((RefJavaElementImpl)to).isUsedQualifiedOutsidePackage()) {
|
||||
return false;
|
||||
}
|
||||
if (SUGGEST_PRIVATE_FOR_INNERS) {
|
||||
|
||||
+2
@@ -3,4 +3,6 @@ class ThisClass extends A {
|
||||
private void foo(A aa) {
|
||||
System.out.println(aa.constanta);
|
||||
}
|
||||
|
||||
public static void main(String[] args) {}
|
||||
}
|
||||
Reference in New Issue
Block a user