-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
meta: discussionNo actual code change is required, but other issues can be begottenNo actual code change is required, but other issues can be begotten
Description
@NullFreeZoneannotation would be a nice way to publicly manifest intolerance to null in all it's forms and origins.
Implemented as with source retention and available for package/type/field/constructor/method , it can beget compile time errors for any null literal usages in the annotated code.
@NullFreeContractas a weaker variant, would declare (and optionally contribute to JavaDoc) that
- none of method s in scope can either accept
nullas a parameter or return it as a result - nont of field s in scope can be assigned to
null
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
meta: discussionNo actual code change is required, but other issues can be begottenNo actual code change is required, but other issues can be begotten