From 8fa3594565d43c81d5e1a34660b29a861b81d43a Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Fri, 24 Jan 2020 16:49:14 +0900 Subject: [PATCH] Remove Error-Prone ExpectedExceptionChecker The checker only checks for misuse of ExpectedException. Since we've moved to JUnit 4.13 and assertThrows, ExpectedException won't be used at all, so now we can get rid of that setting. Change-Id: Ia9189936ae215110f1f5fc6459c5dbc944404ade Signed-off-by: David Pursehouse --- org.eclipse.jgit.benchmarks/pom.xml | 3 --- pom.xml | 3 --- tools/BUILD | 1 - 3 files changed, 7 deletions(-) diff --git a/org.eclipse.jgit.benchmarks/pom.xml b/org.eclipse.jgit.benchmarks/pom.xml index 426fb7ffe4..5e707719ec 100644 --- a/org.eclipse.jgit.benchmarks/pom.xml +++ b/org.eclipse.jgit.benchmarks/pom.xml @@ -69,9 +69,6 @@ javac-with-errorprone true - - -Xep:ExpectedExceptionChecker:ERROR - diff --git a/pom.xml b/pom.xml index 0e1e98fa60..06e2f308a0 100644 --- a/pom.xml +++ b/pom.xml @@ -836,9 +836,6 @@ javac-with-errorprone true - - -Xep:ExpectedExceptionChecker:ERROR - org/eclipse/jgit/transport/InsecureCipherFactory.java diff --git a/tools/BUILD b/tools/BUILD index e5931dc8cd..d66837700c 100644 --- a/tools/BUILD +++ b/tools/BUILD @@ -39,7 +39,6 @@ java_package_configuration( "-Xep:ElementsCountedInLoop:ERROR", "-Xep:EqualsHashCode:ERROR", "-Xep:EqualsIncompatibleType:ERROR", - "-Xep:ExpectedExceptionChecker:ERROR", "-Xep:Finally:WARN", "-Xep:FloatingPointLiteralPrecision:ERROR", "-Xep:FragmentInjection:ERROR", -- 2.39.5