Files
openide/java/java-tests/testData/inspection/nullableProblems/OverriddenWithNullMarked.java
Tagir Valeev a1141237c8 [java-inspections] When analyzing annotation conflict, ignore container annotation if non-container is present
Fixes IDEA-369220 JSpecify support - wrong warning when Nullable method is declared in NullMarked scope and overridden


(cherry picked from commit 50163bfda72bd1f583dda644c668b78859fac022)

IJ-CR-159281

GitOrigin-RevId: fc33b9c9f8ae165baba5a70c00b91267e57d68b1
2025-04-12 07:11:23 +00:00

18 lines
290 B
Java

import org.jspecify.annotations.NullMarked;
import org.jspecify.annotations.Nullable;
class Main {
@NullMarked
interface Api {
@Nullable
<T> T call();
}
@NullMarked
static class Impl implements Api {
@Nullable
public <T> T call() {
return null;
}
}
}