aboutsummaryrefslogtreecommitdiff
path: root/protobuf-lite
diff options
context:
space:
mode:
authorEric Anderson <ejona@google.com>2017-02-24 14:53:23 -0800
committerGitHub <noreply@github.com>2017-02-24 14:53:23 -0800
commit675080b2080da738cb6b02d65f61e7f876f9ebc2 (patch)
tree16d20e2a801b3ec1fff145d290f68ac99a97b007 /protobuf-lite
parenta2f15ae61c3e331fa3de942c4d5f59ffe2bae8b2 (diff)
downloadgrpc-grpc-java-675080b2080da738cb6b02d65f61e7f876f9ebc2.tar.gz
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.
Diffstat (limited to 'protobuf-lite')
-rw-r--r--protobuf-lite/build.gradle3
1 files changed, 2 insertions, 1 deletions
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 {