Replace varargs org.apache.commons.lang3.Validate#notNull with Objects#requireNonNull

MSAL

Replace 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.ReplaceValidateNotNullHavingVarargsWithObjectsRequireNonNull
mod run . --recipe=org.openrewrite.staticanalysis.ReplaceValidateNotNullHavingVarargsWithObjectsRequireNonNull

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.