There is currently a draft JEP trying to address this in the language itself, but I'm very glad that the community is trying to address the nullability issue themselves in the meanwhile
It'd be awesome if @Nullable, @NullMarked, etc are also accepted as a part of the language because otherwise we will have to append ! pretty much everywhere.
That won't happen, but as I'll explain in the followup piece - the best thing you can do to be ready for language-level nullness markers is to adopt JSpecify in the meantime.
26
u/syneil86 Aug 12 '24
There is currently a draft JEP trying to address this in the language itself, but I'm very glad that the community is trying to address the nullability issue themselves in the meanwhile
https://openjdk.org/jeps/8316779