Replace varargs org.apache.commons.lang3.Validate#notNull with Objects#requireNonNull
MSALReplace org.apache.commons.lang3.Validate.notNull(Object, String, Object[]) with Objects.requireNonNull(Object, String), or with Objects.requireNonNull(Object, Supplier<String>) to format the message lazily when format arguments are passed.
org. openrewrite. staticanalysis. ReplaceValidateNotNullHavingVarargsWithObjectsRequireNonNullmod run . --recipe= org. openrewrite. staticanalysis. ReplaceValidateNotNullHavingVarargsWithObjectsRequireNonNullInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.