Make AuditorAware.getCurrentAuditor return Optional

MSAL

As of Spring boot 2.0, the AuditorAware.getCurrentAuditor method should return an Optional. This recipe will update the implementations of this method to return an Optional using the ofNullable.

org.openrewrite.java.spring.data.MigrateAuditorAwareToOptional
mod run . --recipe=org.openrewrite.java.spring.data.MigrateAuditorAwareToOptional

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