package redundant_method_override; | |
public class RedundantMethodOverride extends S { | |
@Override | |
void <warning descr="Method 'foo()' is identical to its super method">foo</warning>() { | |
System.out.println(); | |
} | |
void bar() { | |
System.out.println(); | |
} | |
public void m() { | |
System.out.println(); | |
} | |
} | |
class S { | |
void foo() { | |
System.out.println(); | |
} | |
synchronized void bar() { | |
System.out.println(); | |
} | |
void m() { | |
System.out.println(); | |
} | |
} |