aboutsummaryrefslogtreecommitdiffstats
path: root/build.gradle
diff options
context:
space:
mode:
authorKristen Kozak <sebright@google.com>2018-02-26 16:07:52 -0800
committerKristen Kozak <sebright@google.com>2018-02-26 16:56:27 -0800
commitebb2d1d8e9c00083c7c2372703ed07504e0a2946 (patch)
treec0071388364041120cf7edc54781ad3049dc0bfb /build.gradle
parent1c00ee83a02e10407fcdd1d4e7d8d9f2f669540e (diff)
downloadplatform_external_opencensus-java-ebb2d1d8e9c00083c7c2372703ed07504e0a2946.tar.gz
platform_external_opencensus-java-ebb2d1d8e9c00083c7c2372703ed07504e0a2946.tar.bz2
platform_external_opencensus-java-ebb2d1d8e9c00083c7c2372703ed07504e0a2946.zip
Add explanation for "-Xlint:-try" in build.gradle.
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle2
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"]