Skip to content

Add missing @Nullable to setters of Nullable fields #18618

@rwinch

Description

@rwinch

There are setters and builder methods that initialize members that are
@Nullable but do not accept @Nullable parameters.

For example:

private @Nullable Object foo;

public void setFoo(Object foo) {
    this.foo = foo;
}

It is an unnecessary restriction that the parameter is unable to be null
since the field can be null and should be corrected.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions