From 8d9a06ed7e2b08efe71a4e181a94e244804673bb Mon Sep 17 00:00:00 2001 From: Googler Date: Fri, 13 Jan 2023 09:14:54 -0800 Subject: [PATCH] Make EmptyTopLevelDeclaration a warning PiperOrigin-RevId: 501864491 Change-Id: I06db1964964a2a817f6255153d7ee0121397720d --- tools/jdk/default_java_toolchain.bzl | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/jdk/default_java_toolchain.bzl b/tools/jdk/default_java_toolchain.bzl index cd95cb905e398f..42c87d6b80fb1e 100644 --- a/tools/jdk/default_java_toolchain.bzl +++ b/tools/jdk/default_java_toolchain.bzl @@ -54,6 +54,7 @@ DEFAULT_JAVACOPTS = [ "-Xep:ReturnValueIgnored:OFF", # https://github.com/bazelbuild/bazel/issues/16996 "-Xep:IgnoredPureGetter:OFF", + "-Xep:EmptyTopLevelDeclaration:OFF", ] # Default java_toolchain parameters