mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
move inner: check protected accessibility in respect with class hierarchy (IDEA-154628)
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
package p;
|
||||
|
||||
import p.b.A;
|
||||
|
||||
public class B extends A {
|
||||
private B() {
|
||||
System.out.println("Constructor");
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package p.b;
|
||||
|
||||
class A {
|
||||
protected A() {
|
||||
}
|
||||
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
package p.b;
|
||||
|
||||
class A {
|
||||
protected A() {
|
||||
}
|
||||
|
||||
private class B extends A {
|
||||
private B() {
|
||||
System.out.println("Constructor");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user