Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/annotateMethod/afterDoNotAnnol.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

20 lines
405 B
Java

// "Annotate method 'dontAnnotateBase()' as '@NotNull'" "true-preview"
import org.jetbrains.annotations.NotNull;
class X {
@NotNull
String dontAnnotateBase() {
return "X";
}
}
class Y extends X{
String dontAnnotateBase() {
return "Y";
}
}
class Z extends Y {
@NotNull String dontAnnotateBase() {// trigger quick fix for inspection here
return "Z";
}
}