Skip to content

Invalid @NonNullApi [DATACMNS-1616] #2044

Closed
@spring-projects-issues

Description

@spring-projects-issues

James Howe opened DATACMNS-1616 and commented

There are some APIs that are designed to work with nulls, but are in packages annotated with @NonNullApi. This generates static analysis warning for any implementers / extenders.

I've not done an exhaustive search, but one example is o.s.d.querydsl.binding.SingleValueBinding#bind

Returns:
can be null, in which case the binding will not be incorporated in the overall Predicate .

Attempting to return null will be treated as a mistake


Affects: 2.2.1 (Moore SR1)

Metadata

Metadata

Assignees

Labels

in: coreIssues in core supporttype: bugA general bug

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions