Class NullAwayExtension
java.lang.Object
net.ltgt.gradle.nullaway.NullAwayExtension
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract org.gradle.api.provider.ListProperty<String> The list of packages that should be considered properly annotated according to the NullAway convention.abstract org.gradle.api.provider.Property<Boolean> Convenience option that enables the experimentalHandleWildcardGenerics,JSpecifyJDKModels, andWarnOnGenericInferenceFailurefeatures.abstract org.gradle.api.provider.Property<Boolean> If set to true, enables new checks based on JSpecify (like checks for generic types)abstract org.gradle.api.provider.Property<Boolean> Indicates that thegetAnnotatedPackages()flag has been deliberately omitted, and that NullAway can proceed with only treating@NullMarkedcode as annotated, in accordance with the JSpecify specification.
-
Constructor Details
-
NullAwayExtension
public NullAwayExtension()
-
-
Method Details
-
getOnlyNullMarked
Indicates that thegetAnnotatedPackages()flag has been deliberately omitted, and that NullAway can proceed with only treating@NullMarkedcode as annotated, in accordance with the JSpecify specification. -
getAnnotatedPackages
The list of packages that should be considered properly annotated according to the NullAway convention. -
getJspecifyMode
If set to true, enables new checks based on JSpecify (like checks for generic types) -
getJspecifyExperimental
Convenience option that enables the experimentalHandleWildcardGenerics,JSpecifyJDKModels, andWarnOnGenericInferenceFailurefeatures. This option must be used withjspecifyMode = true.
-