[java-inspections] IDEA-377301 improve jspecify nullability tests

- fix nullable->nonnull

GitOrigin-RevId: 2255696f02e1670b10dd53435ac41efc63bfdcbb
This commit is contained in:
Mikhail Pyltsin
2025-09-17 19:21:28 +00:00
committed by intellij-monorepo-bot
parent 114646e339
commit 469df27af9
@@ -184,8 +184,8 @@ public class JSpecifyConformanceAnnotationTest extends LightJavaCodeInsightFixtu
try (@Nullable AutoCloseable a = () -> {}) {}
"""),
"""
// test:irrelevant-annotation:Nullable
try (@Nullable AutoCloseable a = () -> {}) {}
// test:irrelevant-annotation:NonNull
try (@NonNull AutoCloseable a = () -> {}) {}
""");
text = JOIN_TEST_IRRELEVANT_ANNOTATIONS.matcher(text)
.replaceAll("// test:irrelevant-annotation:Nullable & test:irrelevant-annotation:NonNull\n");