do not report weaker access assignability higher in the hierarchy (IDEA-137533)

This commit is contained in:
Anna Kozlova
2015-03-13 14:32:10 +01:00
parent 3ae288688d
commit 1bf1a2cc13
3 changed files with 20 additions and 0 deletions
@@ -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 {
}