Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/annotateNullability/beforeNullityViolation.java
Tagir Valeev 6c5b10dc6b [java-dfa] IDEA-375755 Suggest adding Nullable annotation when we are under NotNull scope
GitOrigin-RevId: 1239c130bdc0a2a0e9ae5a335d8ae342995c6475
2025-07-11 17:16:17 +00:00

15 lines
297 B
Java

// "Fix all 'Nullability and data flow problems' problems in file" "true"
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.NotNullByDefault;
@NotNullByDefault
class Main {
String test() {
return n<caret>ull;
}
@NotNull String test2() {
return null;
}
}