Remove @Nullable and @CheckForNull annotations from primitives
MSALPrimitives can't be null anyway, so the javax.annotation.Nullable and javax.annotation.CheckForNull annotations are not useful in this context. Leaving them in place gives the false impression that a null value is possible, which can confuse readers and static analysis tools alike.
org. openrewrite. staticanalysis. UnnecessaryPrimitiveAnnotationsmod run . --recipe= org. openrewrite. staticanalysis. UnnecessaryPrimitiveAnnotationsInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.