diff --git a/tools/jdk/default_java_toolchain.bzl b/tools/jdk/default_java_toolchain.bzl index 0a3178358d9d47..025c9d6a5873d0 100644 --- a/tools/jdk/default_java_toolchain.bzl +++ b/tools/jdk/default_java_toolchain.bzl @@ -59,6 +59,7 @@ DEFAULT_JAVACOPTS = [ "-Xep:EmptyTopLevelDeclaration:OFF", "-Xep:LenientFormatStringValidation:OFF", "-Xep:ReturnMissingNullable:OFF", + "-Xep:UseCorrectAssertInTests:OFF", ] # java_toolchain parameters without specifying javac, java.compiler,