Skip to content

Rename @Nullable to @NullOr #11

@tlinkowski

Description

@tlinkowski
  • instead of @Nullable String (which reads as "nullable String")
  • we'll have @NullOr String (which reads as "null or String")

Rationale:

  • @NullOr is shorter
  • @NullOr won't be confused with other @Nullable annotations (primarily, JSR 305 @Nullable which has when=UNKNOWN instead of when=MAYBE)
  • @NullOr conveys the meaning as if the annotated type were a union type

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions