Prefer Optional.isPresent()
MSALPrefer Optional.isPresent() instead of using !Optional.isEmpty() in Java 11 or higher.
org. openrewrite. java. migrate. util. OptionalNotEmptyToIsPresentmod run . --recipe= org. openrewrite. java. migrate. util. OptionalNotEmptyToIsPresentInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.