Open venkateshamurthy opened 3 years ago
was hoping it would @nonnull kind of condition for all method parameters (including for static methods)....but it didmt.
Hi, where/how did you expect this non-nullity to manifest?
This is how it works:
@NonNullPackage
@NonNullPackage
annotation is based on JSR-305's @TypeQualierDefault
annotation (which is a JSR-305 annotation designed specifically for creating custom nullability annotations)@NonNullPackage
should be recognized by all processors that already handle JSR-305 (e.g. IntelliJ IDE, Kotlin compiler)As to libraries which can handle JSR-305, I'd check SpotBugs (but I haven't checked it myself - to me, just IntelliJ & Kotlin support was enough).
PS. Actually, there already was a question similar to yours 2 years ago - please see my answer to this question.
I did try putting the @NonNullPacakge and was hoping it would @NonNull kind of condition for all method parameters (including for static methods)....but it didmt.
By theway where are the annotation processor code...please indicate that