From dc0ed0bba9d2adc1f3bee8558746560fbdb0f8a8 Mon Sep 17 00:00:00 2001 From: Kristen Kozak Date: Mon, 18 Dec 2017 22:21:10 -0800 Subject: 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. --- gradle/errorprone/experimental_suggestions | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gradle') 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,\ -- cgit v1.2.3