tlinkowski / basic-annotations

A couple of basic Java annotations that cover null safety (via JSR 305), collection mutability (via Kotlin), and a few other concepts.
http://annotation.tlinkowski.pl/
Apache License 2.0
9 stars 2 forks source link

Not working - What libraries to add for Java-11 based application #22

Open venkateshamurthy opened 3 years ago

venkateshamurthy commented 3 years ago

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

tlinkowski commented 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:

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.