Move @Nullable method annotations to the return type
MSALMoves @Nullable annotations from the method declaration to its return type. Only annotations declared with @Target(ElementType.TYPE_USE) are moved, as the return type is a type context; declaration annotations such as javax.annotation.Nullable are left on the method.
org. openrewrite. staticanalysis. NullableOnMethodReturnTypemod run . --recipe= org. openrewrite. staticanalysis. NullableOnMethodReturnTypeInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.