Index
All Classes and Interfaces|All Packages
A
- apply(Project) - Method in class net.ltgt.gradle.nullaway.NullAwayPlugin
D
- disable() - Method in class net.ltgt.gradle.nullaway.NullAwayOptions
-
Disable NullAway.
E
- enable() - Method in class net.ltgt.gradle.nullaway.NullAwayOptions
-
Enable NullAway.
- error() - Method in class net.ltgt.gradle.nullaway.NullAwayOptions
-
Enable NullAway as an error.
G
- getAcknowledgeAndroidRecent() - Method in class net.ltgt.gradle.nullaway.NullAwayOptions
-
If set to true, treats
@RecentlyNullableas {code @Nullable}, and@RecentlyNonNullas@NonNull; maps to-XepOpt:NullAway:AcknowledgeAndroidRecent. - getAcknowledgeRestrictiveAnnotations() - Method in class net.ltgt.gradle.nullaway.NullAwayOptions
-
If set to true, NullAway will acknowledge nullability annotations whenever they are available in unannotated code and also more restrictive than it's optimistic defaults; maps to
-XepOpt:NullAway:AcknowledgeRestrictiveAnnotations. - getAnnotatedPackages() - Method in class net.ltgt.gradle.nullaway.NullAwayExtension
-
The list of packages that should be considered properly annotated according to the NullAway convention.
- getAnnotatedPackages() - Method in class net.ltgt.gradle.nullaway.NullAwayOptions
-
The list of packages that should be considered properly annotated according to the NullAway convention; maps to
-XepOpt:NullAway:AnnotatedPackages. - getAssertsEnabled() - Method in class net.ltgt.gradle.nullaway.NullAwayOptions
-
If set to true, NullAway will handle assertions, and use that to reason about the possibility of null dereferences in the code that follows these assertions; maps to
-XepOpt:NullAway:AssertsEnabled. - getAutoFixSuppressionComment() - Method in class net.ltgt.gradle.nullaway.NullAwayOptions
-
A comment that will be added alongside the
@SuppressWarnings("NullAway")annotation whensuggestSuppressionsis set to true; maps to-XepOpt:NullAway:AutoFixSuppressionComment. - getCastToNonNullMethod() - Method in class net.ltgt.gradle.nullaway.NullAwayOptions
-
The fully qualified name of a method to be used for downcasting to a non-null value rather than standard suppressions in some instances; maps to
-XepOpt:NullAway:CastToNonNullMethod. - getCheckContracts() - Method in class net.ltgt.gradle.nullaway.NullAwayOptions
-
If set to true, NullAway will check
@Contractannotations; maps to-XepOpt:NullAway:CheckContracts. - getCheckOptionalEmptiness() - Method in class net.ltgt.gradle.nullaway.NullAwayOptions
-
If set to true, NullAway will check for
.get()accesses to potentially emptyOptionalvalues, analogously to how it handles dereferences to@Nullablevalues; maps to-XepOpt:NullAway:CheckOptionalEmptiness. - getCheckOptionalEmptinessCustomClasses() - Method in class net.ltgt.gradle.nullaway.NullAwayOptions
-
A list of classes to be treated as
Optionalimplementations (e.g. - getCustomContractAnnotations() - Method in class net.ltgt.gradle.nullaway.NullAwayOptions
-
A list of annotations that should be considered equivalent to
@Contractannotations; maps to-XepOpt:NullAway:CustomContractAnnotations. - getCustomGeneratedCodeAnnotations() - Method in class net.ltgt.gradle.nullaway.NullAwayOptions
-
A list of annotations that should be considered equivalent to
@Generatedannotations, for the cases where NullAway cares about such annotations (see e.g. - getCustomInitializerAnnotations() - Method in class net.ltgt.gradle.nullaway.NullAwayOptions
-
A list of annotations that should be considered equivalent to
@Initializerannotations, and thus mark methods as initializers; maps to-XepOpt:NullAway:CustomInitializerAnnotations. - getCustomNonnullAnnotations() - Method in class net.ltgt.gradle.nullaway.NullAwayOptions
-
A list of annotations that should be considered equivalent to
@NonNullannotations, for the cases where NullAway cares about such annotations (see e.g. - getCustomNullableAnnotations() - Method in class net.ltgt.gradle.nullaway.NullAwayOptions
-
A list of annotations that should be considered equivalent to
@Nullableannotations; maps to-XepOpt:NullAway:CustomNullableAnnotations. - getExcludedClassAnnotations() - Method in class net.ltgt.gradle.nullaway.NullAwayOptions
-
A list of annotations that cause classes to be excluded from nullability analysis; maps tp
-XepOpt:NullAway:ExcludedClassAnnotations. - getExcludedClasses() - Method in class net.ltgt.gradle.nullaway.NullAwayOptions
-
A list of classes to be excluded from the nullability analysis; maps to
-XepOpt:NullAway:ExcludedClasses. - getExcludedFieldAnnotations() - Method in class net.ltgt.gradle.nullaway.NullAwayOptions
-
A list of annotations that cause fields to be excluded from being checked for proper initialization; maps to
-XepOpt:NullAway:ExcludedFieldAnnotations. - getExhaustiveOverride() - Method in class net.ltgt.gradle.nullaway.NullAwayOptions
-
If set to true, NullAway will check every method to see whether or not it overrides a method of a super-type, rather than relying only on the
@Overrideannotation; maps to-XepOpt:NullAway:ExhaustiveOverride. - getExternalInitAnnotations() - Method in class net.ltgt.gradle.nullaway.NullAwayOptions
-
A list of annotations for classes that are "externally initialized;" maps to
-XepOpt:NullAway:ExternalInitAnnotations. - getExtraFuturesClasses() - Method in class net.ltgt.gradle.nullaway.NullAwayOptions
-
A list of classes to be treated equivalently to Guava
Futures` and `FluentFuture; maps to-XepOpt:NullAway:ExtraFuturesClasses. - getHandleTestAssertionLibraries() - Method in class net.ltgt.gradle.nullaway.NullAwayOptions
-
If set to true, NullAway will handle assertions from test libraries, like
assertThat(...).isNotNull(), and use that to reason about the possibility of null dereferences in the code that follows these assertions; maps to-XepOpt:NullAway:HandleTestAssertionLibraries. - getHandleWildcardGenerics() - Method in class net.ltgt.gradle.nullaway.NullAwayOptions
-
Should wildcard-aware generic nullability checks be enabled?
- getJspecifyExperimental() - Method in class net.ltgt.gradle.nullaway.NullAwayExtension
-
Convenience option that enables the experimental
HandleWildcardGenerics,JSpecifyJDKModels, andWarnOnGenericInferenceFailurefeatures. - getJspecifyExperimental() - Method in class net.ltgt.gradle.nullaway.NullAwayOptions
-
Convenience option that enables the experimental
HandleWildcardGenerics,JSpecifyJDKModels, andWarnOnGenericInferenceFailurefeatures; maps to-XepOpt:NullAwway:JSpecifyExperimental. - getJspecifyJdkModels() - Method in class net.ltgt.gradle.nullaway.NullAwayOptions
-
Enables NullAway's built-in JSpecify nullness models for JDK APIs; maps to
-XepOpt:NullAway:JSpecifyJDKModels. - getJspecifyMode() - Method in class net.ltgt.gradle.nullaway.NullAwayExtension
-
If set to true, enables new checks based on JSpecify (like checks for generic types)
- getJspecifyMode() - Method in class net.ltgt.gradle.nullaway.NullAwayOptions
-
If set to true, enables new checks based on JSpecify (like checks for generic types); maps to
-XepOpt:NullAway:JSpecifyMode. - getKnownInitializers() - Method in class net.ltgt.gradle.nullaway.NullAwayOptions
-
The fully qualified name of those methods from third-party libraries that NullAway should treat as initializers; maps to
-XepOpt:NullAway:KnownInitializers. - getOnlyNullMarked() - Method in class net.ltgt.gradle.nullaway.NullAwayExtension
-
Indicates that the
NullAwayExtension.getAnnotatedPackages()flag has been deliberately omitted, and that NullAway can proceed with only treating@NullMarkedcode as annotated, in accordance with the JSpecify specification. - getOnlyNullMarked() - Method in class net.ltgt.gradle.nullaway.NullAwayOptions
-
Indicates that the
annotatedPackagesflag has been deliberately omitted, and that NullAway can proceed with only treating@NullMarkedcode as annotated, in accordance with the JSpecify specification; maps to-XepOpt:NullAway:OnlyNullMarked. - getSeverity() - Method in class net.ltgt.gradle.nullaway.NullAwayOptions
-
The severity of the NullAway check.
- getSuggestSuppressions() - Method in class net.ltgt.gradle.nullaway.NullAwayOptions
-
If set to true, NullAway will use Error Prone's suggested fix functionality to suggest suppressing any warning that it finds; maps to
-XepOpt:NullAway:SuggestSuppressions. - getSuppressionNameAliases() - Method in class net.ltgt.gradle.nullaway.NullAwayOptions
-
A list of names to suppress NullAway using a
@SuppressWarningsannotation, similar to@SuppressWarnings("NullAway"); maps to-XepOpt:NullAway:SuppressionNameAliases. - getTreatGeneratedAsUnannotated() - Method in class net.ltgt.gradle.nullaway.NullAwayOptions
-
If set to true, NullAway treats any class annotated with
@Generatedas if its APIs are unannotated when analyzing uses from other classes; maps to-XepOpt:NullAway:TreatGeneratedAsUnannotated. - getUnannotatedClasses() - Method in class net.ltgt.gradle.nullaway.NullAwayOptions
-
A list of classes within annotated packages that should be treated as unannotated; maps to
-XepOpt:NullAway:UnannotatedClasses. - getUnannotatedSubPackages() - Method in class net.ltgt.gradle.nullaway.NullAwayOptions
-
A list of subpackages to be excluded from the
annotatedPackageslist; maps to-XepOpt:NullAway:UnannotatedSubPackages. - getWarnOnGenericInferenceFailure() - Method in class net.ltgt.gradle.nullaway.NullAwayOptions
-
If set to true, NullAway will issue a warning when generic type inference fails to infer a type argument's nullability; maps to
-XepOpt:NullAway:WarnOnGenericInferenceFailure.
N
- net.ltgt.gradle.nullaway - package net.ltgt.gradle.nullaway
- NullAwayExtension - Class in net.ltgt.gradle.nullaway
- NullAwayExtension() - Constructor for class net.ltgt.gradle.nullaway.NullAwayExtension
- NullAwayOptions - Class in net.ltgt.gradle.nullaway
- NullAwayOptions(NullAwayExtension) - Constructor for class net.ltgt.gradle.nullaway.NullAwayOptions
- NullAwayPlugin - Class in net.ltgt.gradle.nullaway
- NullAwayPlugin() - Constructor for class net.ltgt.gradle.nullaway.NullAwayPlugin
W
- warn() - Method in class net.ltgt.gradle.nullaway.NullAwayOptions
-
Enable NullAway as a warning.
All Classes and Interfaces|All Packages