Replace .getOrElse(null) with .orNull
ProprietaryReplaces .getOrElse(null) on Option values with .orNull for a cleaner, idiomatic alternative.
org. openrewrite. scala. cleanup. UseOrNullmod run . --recipe= org. openrewrite. scala. cleanup. UseOrNullInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.