Add @Nullable to a field assigned a nullable value
ProprietaryAdds a JSpecify @Nullable to a @NonNull reference field that is assigned a provably-nullable value, which would otherwise trigger NullAway's "assigning @Nullable expression to @NonNull field" error inside a @NullMarked scope. A value is provably nullable when it is the null literal, a call to a nullable-returning method, or a reference to a @Nullable variable or field. Only fires where NullAway is active; idempotent, and leaves a field unchanged when it cannot be resolved. Java sources only.
io. moderne. nullability. AddNullableToNullAssignedFieldOptional
Comma-separated package prefixes to limit the fix to (matching NullAway's AnnotatedPackages option). When unset, the recipe fixes all packages.
mod run . --recipe= io. moderne. nullability. AddNullableToNullAssignedFieldInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.