[java-dfa] Test for IDEA-369562 False positive from Nullability inspection

Fixed earlier

GitOrigin-RevId: daf147620f07ac29b86b0dffe11182ae65b1d157
This commit is contained in:
Tagir Valeev
2025-06-13 13:56:22 +00:00
committed by intellij-monorepo-bot
parent 0a794ff8a8
commit 2eb2bd2b94
@@ -102,4 +102,12 @@ class MarkedAsNull {
public enum UserType { TYPE_1, TYPE_2 }
public record Person (String name, @Nullable UserType userType) {}
public @Nullable Object get() {
return new Object();
}
void test2() {
Assertions.assertThat(get()).isNotNull();
}
}