[java-dfa] Tests: remove addJetBrainsNotNullByDefault

Unnecessary, as we bumped jetbrains-annotation version (see fcc63bf20b9ce20640d8484fadd820bf39a0a27e [java-dfa] IDEA-375755 Suggest adding Nullable annotation when we are under NotNull scope Tagir Valeev), so it's available by default

GitOrigin-RevId: 158b4e0697b4c408915b947be850d3db1aaa1b7c
This commit is contained in:
Tagir Valeev
2025-07-11 17:16:17 +00:00
committed by intellij-monorepo-bot
parent 9c6ce129bb
commit 5479b3cde8
3 changed files with 0 additions and 13 deletions
@@ -142,7 +142,6 @@ public class DataFlowInspection21Test extends DataFlowInspectionTestCase {
public void testSwitchBooleanWhen() { doTest(); }
public void testJetBrainsNotNullByDefault() {
addJetBrainsNotNullByDefault(myFixture);
doTest();
}
@@ -48,16 +48,6 @@ public abstract class DataFlowInspectionTestCase extends LightJavaCodeInsightFix
"}");
}
static void addJetBrainsNotNullByDefault(JavaCodeInsightTestFixture fixture) {
fixture.addClass("""
package org.jetbrains.annotations;
import java.lang.annotation.*;
@Target({ElementType.TYPE, ElementType.PACKAGE})\s
public @interface NotNullByDefault {}""");
}
static void addJSpecifyNullMarked(JavaCodeInsightTestFixture fixture) {
@Language("JAVA") String nullMarked =
"""
@@ -449,12 +449,10 @@ public class NullableStuffInspectionTest extends LightJavaCodeInsightFixtureTest
}
public void testParameterUnderDefaultNotNull() {
DataFlowInspectionTestCase.addJetBrainsNotNullByDefault(myFixture);
doTest();
}
public void testRedundantNotNull() {
DataFlowInspectionTestCase.addJetBrainsNotNullByDefault(myFixture);
doTest();
}