diff --git a/core/src/test/java/com/google/errorprone/ErrorProneCompilerIntegrationTest.java b/core/src/test/java/com/google/errorprone/ErrorProneCompilerIntegrationTest.java index fa3740d18d5..0574fb186cd 100644 --- a/core/src/test/java/com/google/errorprone/ErrorProneCompilerIntegrationTest.java +++ b/core/src/test/java/com/google/errorprone/ErrorProneCompilerIntegrationTest.java @@ -581,9 +581,6 @@ public void compilationWithError() { compiler = compilerBuilder.build(); Result exitCode = compiler.compile( - new String[] { - "-XDshouldStopPolicyIfError=LOWER", - }, Arrays.asList( forSourceLines( "Test.java", diff --git a/core/src/test/java/com/google/errorprone/bugpatterns/FieldCanBeFinalTest.java b/core/src/test/java/com/google/errorprone/bugpatterns/FieldCanBeFinalTest.java index 827b2c1724c..abacd96eb07 100644 --- a/core/src/test/java/com/google/errorprone/bugpatterns/FieldCanBeFinalTest.java +++ b/core/src/test/java/com/google/errorprone/bugpatterns/FieldCanBeFinalTest.java @@ -17,7 +17,6 @@ import com.google.errorprone.CompilationTestHelper; import com.google.errorprone.annotations.Var; -import java.util.Arrays; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; @@ -348,8 +347,6 @@ class B { } } """) - // hackily force processing of both compilation units so we can verify both diagnostics - .setArgs(Arrays.asList("-XDshouldStopPolicyIfError=FLOW")) .doTest(); }