]> source.dussan.org Git - jgit.git/commitdiff
Remove Error-Prone ExpectedExceptionChecker 94/156494/1
authorDavid Pursehouse <david.pursehouse@gmail.com>
Fri, 24 Jan 2020 07:49:14 +0000 (16:49 +0900)
committerDavid Pursehouse <david.pursehouse@gmail.com>
Fri, 24 Jan 2020 07:49:14 +0000 (16:49 +0900)
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 <david.pursehouse@gmail.com>
org.eclipse.jgit.benchmarks/pom.xml
pom.xml
tools/BUILD

index 426fb7ffe47a306f00f6d027fe5ccd7bf8f5cd50..5e707719ec2fb540abcc93b6f0bdfa0fb0dce3e3 100644 (file)
@@ -69,9 +69,6 @@
             <configuration>
               <compilerId>javac-with-errorprone</compilerId>
               <forceJavacCompilerUse>true</forceJavacCompilerUse>
-              <compilerArgs>
-                <arg>-Xep:ExpectedExceptionChecker:ERROR</arg>
-              </compilerArgs>
             </configuration>
           </execution>
         </executions>
diff --git a/pom.xml b/pom.xml
index 0e1e98fa60c47548c7275a19c9241042ba513350..06e2f308a03d3d1214cfa2036159c99ccd242f98 100644 (file)
--- a/pom.xml
+++ b/pom.xml
                 <configuration>
                   <compilerId>javac-with-errorprone</compilerId>
                   <forceJavacCompilerUse>true</forceJavacCompilerUse>
-                  <compilerArgs>
-                    <arg>-Xep:ExpectedExceptionChecker:ERROR</arg>
-                  </compilerArgs>
                   <excludes>
                     <exclude>org/eclipse/jgit/transport/InsecureCipherFactory.java</exclude>
                   </excludes>
index e5931dc8cd7dd36948a54a59230d3994f59b5e8a..d66837700c300f44702b74efa3ccf64273c1dd7b 100644 (file)
@@ -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",