diff --git a/.bazelrc b/.bazelrc index 6ed9fb561..77a279166 100644 --- a/.bazelrc +++ b/.bazelrc @@ -168,9 +168,7 @@ build --javacopt "-Xep:EqualsIncompatibleType:ERROR" build --javacopt "-Xep:EqualsUnsafeCast:ERROR" build --javacopt "-Xep:EqualsUsingHashCode:ERROR" build --javacopt "-Xep:ExtendingJUnitAssert:ERROR" -# TODO(#222) Increase to error when we build from jflex-1.7.1 with a lexer annotated with -# @SuppressWarnings -build --javacopt "-Xep:FallThrough:WARN" +build --javacopt "-Xep:FallThrough:ERROR" build --javacopt "-Xep:Finally:ERROR" build --javacopt "-Xep:FloatCast:ERROR" build --javacopt "-Xep:FloatingPointAssertionWithinEpsilon:ERROR" diff --git a/pom.xml b/pom.xml index 501586ce7..9af0150e2 100644 --- a/pom.xml +++ b/pom.xml @@ -474,7 +474,7 @@ 8 -XDcompilePolicy=simple - -Xplugin:ErrorProne -Xep:FallThrough:WARN + -Xplugin:ErrorProne