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