Change method invocation return type

MSAL

Changes the return type of a method invocation.

org.openrewrite.java.migrate.ChangeMethodInvocationReturnType

Required

A method pattern that is used to find matching method declarations/invocations.

The fully qualified new return type of method invocation.

mod run . --recipe=org.openrewrite.java.migrate.ChangeMethodInvocationReturnType \ -P methodPattern='org.mockito.Matchers anyVararg()' \ -P newReturnType=long

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

Recipe list

It runs these recipes, in this order.

  1. Change method invocation return type