diff options
author | Kristen Kozak <sebright@google.com> | 2018-03-30 14:17:06 -0700 |
---|---|---|
committer | Kristen Kozak <sebright@google.com> | 2018-03-30 14:20:19 -0700 |
commit | cb18919b68e6f137dca9b5f037313cf35672e0d0 (patch) | |
tree | 1b6bdc3676d776b23737160c6158e71cf3249089 /gradle | |
parent | 95e8f18cf1020419755a1fc207e500fbdb23081d (diff) | |
download | opencensus-java-cb18919b68e6f137dca9b5f037313cf35672e0d0.tar.gz |
Turn off Error Prone warning MutableMethodReturnType.
MutableMethodReturnType suggests returning Guava immutable collections from API
methods, but OpenCensus doesn't expose Guava in its API. See
https://github.com/google/error-prone/issues/982.
Diffstat (limited to 'gradle')
-rw-r--r-- | gradle/errorprone/experimental_warnings | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gradle/errorprone/experimental_warnings b/gradle/errorprone/experimental_warnings index c89cf2f1..46e2371a 100644 --- a/gradle/errorprone/experimental_warnings +++ b/gradle/errorprone/experimental_warnings @@ -1,3 +1,6 @@ +# MutableMethodReturnType is turned off because it can suggest returning Guava +# types from API methods (https://github.com/google/error-prone/issues/982). + errorProneExperimentalWarnings = \ -Xep:AssertFalse:ERROR,\ -Xep:AssistedInjectAndInjectOnConstructors:ERROR,\ @@ -12,7 +15,7 @@ errorProneExperimentalWarnings = \ -Xep:HardCodedSdCardPath:ERROR,\ -Xep:InconsistentOverloads:ERROR,\ -Xep:MissingDefault:ERROR,\ --Xep:MutableMethodReturnType:ERROR,\ +-Xep:MutableMethodReturnType:OFF,\ -Xep:NonCanonicalStaticMemberImport:ERROR,\ -Xep:PrimitiveArrayPassedToVarargsMethod:ERROR,\ -Xep:ProvidesFix:ERROR,\ |