You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Should other *Null annotations from Checker Framework be supported? #3
[@amaembo] I would not introduce PolyNull eagerly. It’s very limited. In JetBrains we have much more powerful thing called Contract (see here) which can express much more (though also sometimes we want something which is not expressible via Contract). Of course I don’t suggest to add Contract as is, but adding such limited annotation as PolyNull without detailed consideration about possible needs may result in redundancy in future, like after a while we may introduce something more advanced which covers PolyNull case and PolyNull will become redundant. These advanced things should be thoroughly discussed, definitely not in the first release of our library.
[@abreslav] The Kotlin team is also working on something around contracts, and I agree that @polynull is way quite limited. Let’s discuss the question of abstraction over nullability more.
changed the title [-]Should be other *Null annotations from Checker Framework be supported?[/-][+]Should other *Null annotations from Checker Framework be supported?[/+]on Nov 26, 2018
Separate issue per annotation sounds fine to me. However, my reading of the existing discussion is that we won't tackle any of these additional annotations initially. So I'm going to close this but if people want to discuss a particular annotation please open a separate issue for that annotation.
FWIW, the Guava usages of @MonotonicNonNull I've seen so far have all been in lazy-initialization code, which works fine with plain @Nullable. I'll try to remember to report back if that changes.
Activity
dzharkov commentedon Nov 26, 2018
Comments from the document:
[-]Should be other *Null annotations from Checker Framework be supported?[/-][+]Should other *Null annotations from Checker Framework be supported?[/+]kevinb9n commentedon Nov 26, 2018
Each annotation should only be considered on a case-by-case basis. Can we close this issue?
kevin1e100 commentedon Nov 26, 2018
Separate issue per annotation sounds fine to me. However, my reading of the existing discussion is that we won't tackle any of these additional annotations initially. So I'm going to close this but if people want to discuss a particular annotation please open a separate issue for that annotation.
kevinb9n commentedon Jun 26, 2019
Note that we have support for other annotations currently stated as a "optional requirement".
cpovirk commentedon Sep 23, 2019
FWIW, the Guava usages of
@MonotonicNonNullI've seen so far have all been in lazy-initialization code, which works fine with plain@Nullable. I'll try to remember to report back if that changes.[edit: google/guava@
559e1ac1359e8d5dc0941aa72691698185d65407][edit:
@MonotonicNonNullis now #300.]