mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-06 06:21:16 +07:00
[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:
committed by
intellij-monorepo-bot
parent
9c6ce129bb
commit
5479b3cde8
@@ -142,7 +142,6 @@ public class DataFlowInspection21Test extends DataFlowInspectionTestCase {
|
||||
public void testSwitchBooleanWhen() { doTest(); }
|
||||
|
||||
public void testJetBrainsNotNullByDefault() {
|
||||
addJetBrainsNotNullByDefault(myFixture);
|
||||
doTest();
|
||||
}
|
||||
|
||||
|
||||
-10
@@ -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 =
|
||||
"""
|
||||
|
||||
-2
@@ -449,12 +449,10 @@ public class NullableStuffInspectionTest extends LightJavaCodeInsightFixtureTest
|
||||
}
|
||||
|
||||
public void testParameterUnderDefaultNotNull() {
|
||||
DataFlowInspectionTestCase.addJetBrainsNotNullByDefault(myFixture);
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testRedundantNotNull() {
|
||||
DataFlowInspectionTestCase.addJetBrainsNotNullByDefault(myFixture);
|
||||
doTest();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user