diff options
| -rw-r--r-- | build.gradle | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle index 69662153..8ceb5eb2 100644 --- a/build.gradle +++ b/build.gradle @@ -66,6 +66,8 @@ subprojects { } [compileJava, compileTestJava].each() { + // We suppress the "try" warning because it disallows managing an auto-closeable with + // try-with-resources without referencing the auto-closeable within the try block. // We suppress the "processing" warning as suggested in // https://groups.google.com/forum/#!topic/bazel-discuss/_R3A9TJSoPM it.options.compilerArgs += ["-Xlint:all", "-Xlint:-try", "-Xlint:-processing"] |
