Transform calls to Objects.isNull(..) and Objects.nonNull(..)

Apache 2.0

Replace calls to Objects.isNull(..) and Objects.nonNull(..) with a simple null check. Using these methods outside of stream predicates is not idiomatic.

org.openrewrite.java.RemoveObjectsIsNull
mod run . --recipe=org.openrewrite.java.RemoveObjectsIsNull

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