7 ms·
So we now have explicit optional to go with implicit optional. Still looking for an explicit not-optional where the compiler will complain when a possibly-null
by Shish2k 11y ago
So we now have explicit optional to go with implicit optional. Still looking for an explicit not-optional where the compiler will complain when a possibly-null value is passed in :(
- yarper 11y agoSomething like the @NonNull annotation? https://blogs.oracle.com/java-platform-group/entry/java_8_s_new_type https://blogs.oracle.com/java-platform-group/entry/java_8_s_... Edit: @NonNull rather than @NotNull. This annotation has existed in various guises and frameworks for a while, usually as @NotNull which is is probably why it's called @NonNull (avoiding breaking changes)