mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-07 19:36:56 +07:00
24 lines
628 B
Java
24 lines
628 B
Java
import org.jetbrains.annotations.*;
|
|
|
|
public class NotNullAnnotationChecksInChildClassMethods {
|
|
|
|
private static class A {
|
|
@NotNull public String getNormalizedName() {
|
|
return "classA";
|
|
}
|
|
}
|
|
|
|
private static class B extends A {
|
|
|
|
@Override public String <warning descr="Not annotated method overrides method annotated with @NotNull">getNormalizedName</warning>() {
|
|
return "classB";
|
|
}
|
|
}
|
|
|
|
private static class C extends B {
|
|
|
|
@Override public String <warning descr="Not annotated method overrides method annotated with @NotNull">getNormalizedName</warning>() {
|
|
return "classC";
|
|
}
|
|
}
|
|
} |