Skip to content

Commit

Permalink
Disable some ReturnValueIgnored methods for Bazel
Browse files Browse the repository at this point in the history
bazelbuild/java_tools#51

PiperOrigin-RevId: 399265327
  • Loading branch information
cushon authored and copybara-github committed Sep 27, 2021
1 parent ae280ae commit cf57345
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/jdk/default_java_toolchain.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ DEFAULT_JAVACOPTS = [
"-XDcompilePolicy=simple",
"-g",
"-parameters",
# https://github.com/bazelbuild/java_tools/issues/51#issuecomment-927940699
"-XepOpt:ReturnValueIgnored:ObjectMethods=false",
]

# java_toolchain parameters without specifying javac, java.compiler,
Expand Down

0 comments on commit cf57345

Please sign in to comment.