mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
do not report weaker access assignability higher in the hierarchy (IDEA-137533)
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
|
||||
class F {
|
||||
public void f() {}
|
||||
}
|
||||
|
||||
class E extends F {
|
||||
@Override
|
||||
<error descr="'f()' in 'E' clashes with 'f()' in 'F'; attempting to assign weaker access privileges ('protected'); was 'public'">protected</error> void f() {
|
||||
super.f();
|
||||
}
|
||||
}
|
||||
|
||||
class EE extends E {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user