Skip to content

Review nullability of configuration properties setters #48207

@wilkinsona

Description

@wilkinsona

We have a pattern where properties that are initialised with a default value are not @Nullable and, therefore, the setter's parameter isn't @Nullable either. Where the property has no default value it is @Nullable and both the getter and setter are @Nullable. This means that whether a setter is @Nullable depends on whether or not the property has a default value. The two feel unrelated to me and I wonder if we want to be consistent in the nullability of configuration properties setters.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: declinedA suggestion or change that we don't feel we should currently apply

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions