mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[java-dfa] Test for IDEA-369562 False positive from Nullability inspection
Fixed earlier GitOrigin-RevId: daf147620f07ac29b86b0dffe11182ae65b1d157
This commit is contained in:
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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user