From 9db58e0656d7456e8180e90400c2c94a76bf5c8b Mon Sep 17 00:00:00 2001 From: Googler Date: Wed, 6 Apr 2022 14:45:07 -0700 Subject: [PATCH] Automatic code cleanup. PiperOrigin-RevId: 439940077 --- .../javatests/com/google/testing/junit/runner/BUILD | 3 +++ src/test/java/com/google/devtools/build/lib/actions/BUILD | 3 +++ .../com/google/devtools/build/lib/skyframe/serialization/BUILD | 3 +++ src/test/java/com/google/devtools/common/options/testing/BUILD | 3 +++ 4 files changed, 12 insertions(+) diff --git a/src/java_tools/junitrunner/javatests/com/google/testing/junit/runner/BUILD b/src/java_tools/junitrunner/javatests/com/google/testing/junit/runner/BUILD index 2090370d5e12ef..6ceb39c76630d6 100644 --- a/src/java_tools/junitrunner/javatests/com/google/testing/junit/runner/BUILD +++ b/src/java_tools/junitrunner/javatests/com/google/testing/junit/runner/BUILD @@ -13,6 +13,9 @@ java_library( ["**/*.java"], exclude = ["testbed/*.java"], ), + javacopts = [ + "-XepOpt:CheckReturnValue:CheckAllConstructors=false", # b/226969262 + ], deps = [ "//src/java_tools/junitrunner/java/com/google/testing/junit/runner/internal", "//src/java_tools/junitrunner/java/com/google/testing/junit/runner/internal:junit4", diff --git a/src/test/java/com/google/devtools/build/lib/actions/BUILD b/src/test/java/com/google/devtools/build/lib/actions/BUILD index 08fc0a1695c1bf..bbb637416452e4 100644 --- a/src/test/java/com/google/devtools/build/lib/actions/BUILD +++ b/src/test/java/com/google/devtools/build/lib/actions/BUILD @@ -25,6 +25,9 @@ java_library( "cache/*.java", ], ), + javacopts = [ + "-XepOpt:CheckReturnValue:CheckAllConstructors=false", # b/226969262 + ], deps = [ "//src/main/java/com/google/devtools/build/lib/actions", "//src/main/java/com/google/devtools/build/lib/actions:action_input_helper", diff --git a/src/test/java/com/google/devtools/build/lib/skyframe/serialization/BUILD b/src/test/java/com/google/devtools/build/lib/skyframe/serialization/BUILD index e668b0bb15277c..8b1ddccb1a3dc4 100644 --- a/src/test/java/com/google/devtools/build/lib/skyframe/serialization/BUILD +++ b/src/test/java/com/google/devtools/build/lib/skyframe/serialization/BUILD @@ -174,6 +174,9 @@ java_test( name = "ByteArrayCodecTest", size = "small", srcs = ["ByteArrayCodecTest.java"], + javacopts = [ + "-XepOpt:CheckReturnValue:CheckAllConstructors=false", # b/226969262 + ], deps = [ "//src/main/java/com/google/devtools/build/lib/skyframe/serialization/testutils", "//third_party:junit4", diff --git a/src/test/java/com/google/devtools/common/options/testing/BUILD b/src/test/java/com/google/devtools/common/options/testing/BUILD index e74f8bcf137bb5..8a09214b345f3c 100644 --- a/src/test/java/com/google/devtools/common/options/testing/BUILD +++ b/src/test/java/com/google/devtools/common/options/testing/BUILD @@ -19,6 +19,9 @@ filegroup( java_library( name = "OptionsTesterTest_lib", srcs = glob(["*.java"]), + javacopts = [ + "-XepOpt:CheckReturnValue:CheckAllConstructors=false", # b/226969262 + ], deps = [ "//src/main/java/com/google/devtools/common/options", "//src/main/java/com/google/devtools/common/options/testing",