Cast a null actual value of a Hamcrest assertion to Object

MSAL

Cast the null that Hamcrest's assertThat(null, matcher) asserts on to Object, so that the AssertJ assertion it is migrated to resolves to one overload of assertThat.

org.openrewrite.java.testing.hamcrest.CastNullActualToObject
mod run . --recipe=org.openrewrite.java.testing.hamcrest.CastNullActualToObject

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