From 675080b2080da738cb6b02d65f61e7f876f9ebc2 Mon Sep 17 00:00:00 2001 From: Eric Anderson Date: Fri, 24 Feb 2017 14:53:23 -0800 Subject: all: Enable ErrorProne during compilation ErrorProne provides static analysis for common issues, including misused variables GuardedBy locks. This increases build time by 60% for parallel builds and 30% for non-parallel, so I've provided a way to disable the check. It is on by default though and will be run in our CI environments. --- protobuf-lite/build.gradle | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'protobuf-lite') diff --git a/protobuf-lite/build.gradle b/protobuf-lite/build.gradle index 9d55933ee..84a8390f4 100644 --- a/protobuf-lite/build.gradle +++ b/protobuf-lite/build.gradle @@ -24,7 +24,8 @@ dependencies { compileTestJava { // Protobuf-generated Lite produces quite a few warnings. - options.compilerArgs += ["-Xlint:-rawtypes", "-Xlint:-unchecked", "-Xlint:-fallthrough"] + options.compilerArgs += ["-Xlint:-rawtypes", "-Xlint:-unchecked", "-Xlint:-fallthrough", + "-Xep:MissingOverride:OFF", "-Xep:ReferenceEquality:OFF"] } protobuf { -- cgit v1.2.3