blob: 8ebe5372a650a536c9ccf123cbad4b48bfa4e5bb [file] [log] [blame]
package com.siyeh.igtest.style.unnecessary_super_qualifier;
public class UnnecessarySuperQualifier {
private static class Base<T> {
int field;
void test(T v) {
}
}
private static class Derived extends Base<String> {
int field;
void test(String v) {
super.test(v); // <-----
System.out.println(super.field);
}
}
private static class Up extends Base<String> {
void foo() {
super.test("asfd");
System.out.println(super.field);
}
}
class Father {
protected int prot;
}
class Son extends Father {
public void context(int prot) {
super.prot = prot;
}
}
}