Change method invocation return type
MSALChanges the return type of a method invocation.
org. openrewrite. java. migrate. ChangeMethodInvocationReturnTypeRequired
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= longInstall 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.