Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/annotateMethod/afterOverriddenMethods.java
Georgii Ustinov a4d5e41d7f [Java. Code Formatting] Rewrite the way of detection type annotation in JavaFormatterUtil
IDEA-353192

GitOrigin-RevId: 34e375e4e1e059be03aad12c2839911b8315ed06
2024-06-04 06:46:24 +00:00

21 lines
379 B
Java

// "Annotate overriding methods as '@NotNull'" "true"
import org.jetbrains.annotations.NotNull;
abstract class P2 {
@NotNull<caret>
String foo(@NotNull P p) {
return "";
}
}
class PPP extends P2 {
@NotNull String foo(P p) {
return super.foo(p);
}
}
class PPP2 extends P2 {
@NotNull String foo(P p) {
return super.foo(p);
}
}