diff options
author | Kristen Kozak <sebright@google.com> | 2017-12-18 22:21:10 -0800 |
---|---|---|
committer | Kristen Kozak <sebright@google.com> | 2017-12-19 10:28:06 -0800 |
commit | dc0ed0bba9d2adc1f3bee8558746560fbdb0f8a8 (patch) | |
tree | f67fe3d057e4fd40fc3b9d1e1c06e5e5428d3f89 /gradle | |
parent | b211232aa11cb3a35a33ad7d0fbd4ce7d07f0522 (diff) | |
download | opencensus-java-dc0ed0bba9d2adc1f3bee8558746560fbdb0f8a8.tar.gz |
Add more null annotations (issue #359).
This commit adds some Nullable annotations that are required by the Checker
Framework, but it doesn't change any other code. It also suppresses some Error
Prone and FindBugs warnings that conflict with the Checker Framework, since the
three tools use different algorithms.
Diffstat (limited to 'gradle')
-rw-r--r-- | gradle/errorprone/experimental_suggestions | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gradle/errorprone/experimental_suggestions b/gradle/errorprone/experimental_suggestions index 1330b843..c330674c 100644 --- a/gradle/errorprone/experimental_suggestions +++ b/gradle/errorprone/experimental_suggestions @@ -1,6 +1,9 @@ # FieldMissingNullable is turned off due to # https://github.com/google/error-prone/issues/823. +# ReturnMissingNullable is turned off because it +# conflicts with Checker Framework null analysis. + errorProneExperimentalSuggestions = \ -Xep:ConstantField:ERROR,\ -Xep:EmptySetMultibindingContributions:ERROR,\ @@ -16,7 +19,7 @@ errorProneExperimentalSuggestions = \ -Xep:PrivateConstructorForNoninstantiableModuleTest:ERROR,\ -Xep:PrivateConstructorForUtilityClass:ERROR,\ -Xep:RemoveUnusedImports:ERROR,\ --Xep:ReturnMissingNullable:ERROR,\ +-Xep:ReturnMissingNullable:OFF,\ -Xep:ThrowsUncheckedException:ERROR,\ -Xep:UngroupedOverloads:ERROR,\ -Xep:UnnecessarySetDefault:ERROR,\ |