Update errorprone

This commit is contained in:
Jason Penilla 2021-09-26 19:10:36 -07:00 committed by Jason
parent 8aa81b445e
commit 1b52e8c3bd
6 changed files with 10 additions and 7 deletions

View file

@ -1,7 +1,7 @@
object Versions { object Versions {
const val checkerQual = "3.9.1" const val checkerQual = "3.9.1"
const val geantyref = "1.3.11" const val geantyref = "1.3.11"
const val errorprone = "2.5.1" const val errorprone = "2.9.0"
// INTEGRATION DEPENDENCIES // INTEGRATION DEPENDENCIES
const val guice = "4.2.3" const val guice = "4.2.3"

View file

@ -32,7 +32,8 @@ tasks {
"ImmutableEnumChecker", "ImmutableEnumChecker",
"StringSplitter", "StringSplitter",
"EqualsGetClass", "EqualsGetClass",
"CatchAndPrintStackTrace" "CatchAndPrintStackTrace",
"InlineMeSuggester",
) )
} }
options.compilerArgs.addAll(listOf("-Xlint:-processing", "-Werror")) options.compilerArgs.addAll(listOf("-Xlint:-processing", "-Werror"))
@ -89,5 +90,6 @@ dependencies {
compileOnlyApi("org.checkerframework", "checker-qual", Versions.checkerQual) compileOnlyApi("org.checkerframework", "checker-qual", Versions.checkerQual)
testImplementation("org.junit.jupiter", "junit-jupiter-engine", Versions.jupiterEngine) testImplementation("org.junit.jupiter", "junit-jupiter-engine", Versions.jupiterEngine)
errorprone("com.google.errorprone", "error_prone_core", Versions.errorprone) errorprone("com.google.errorprone", "error_prone_core", Versions.errorprone)
compileOnlyApi("com.google.errorprone", "error_prone_annotations", Versions.errorprone) // Silences compiler warnings from guava using errorprone
compileOnly("com.google.errorprone", "error_prone_annotations", Versions.errorprone)
} }

View file

@ -43,6 +43,7 @@ public class ParserRegistryTest {
public static final int RANGE_MIN = 10; public static final int RANGE_MIN = 10;
public static final int RANGE_MAX = 100; public static final int RANGE_MAX = 100;
@SuppressWarnings("ReturnValueIgnored")
@Test @Test
void testParserRegistry() { void testParserRegistry() {
final ParserRegistry<TestCommandSender> parserRegistry = new StandardParserRegistry<>(); final ParserRegistry<TestCommandSender> parserRegistry = new StandardParserRegistry<>();

View file

@ -28,7 +28,8 @@ import com.mojang.brigadier.StringReader;
/** /**
* An extension to the Brigadier StringReader that also implements Queue (via mixin). * An extension to the Brigadier StringReader that also implements Queue (via mixin).
* *
* @see cloud.commandframework.fabric.mixin.CloudStringReaderMixin for the {@link java.util.Queue} implementation * <p>See {@link cloud.commandframework.fabric.mixin.CloudStringReaderMixin} for the
* {@link java.util.Queue} implementation.</p>
*/ */
public final class CloudStringReader extends StringReader { public final class CloudStringReader extends StringReader {

View file

@ -28,7 +28,7 @@ import org.checkerframework.checker.nullness.qual.NonNull;
/** /**
* Wrapper for exceptions thrown during pipeline execution. * Wrapper for exceptions thrown during pipeline execution.
* *
* @see #getCause() Use {@link #getCause()} to get the wrapped exception * @see #getCause() Use getCause to get the wrapped exception
*/ */
public final class PipelineException extends RuntimeException { public final class PipelineException extends RuntimeException {

View file

@ -5,7 +5,6 @@ metadata:
plugins: plugins:
com.github.johnrengelman.shadow: 7.0.0 com.github.johnrengelman.shadow: 7.0.0
net.ltgt.errorprone: 2.0.1
com.github.ben-manes.versions: 0.36.0 com.github.ben-manes.versions: 0.36.0
versions: versions:
@ -15,7 +14,7 @@ versions:
checkstyle: 8.39 checkstyle: 8.39
indra: 2.0.6 indra: 2.0.6
gradleTestLogger: 3.0.0 gradleTestLogger: 3.0.0
gradleErrorprone: 2.0.1 gradleErrorprone: 2.0.2
licenser: 0.6.1 licenser: 0.6.1
dependencies: dependencies: