Change parameter type for a method declaration
MSALChange parameter type for a method declaration, identified by a method pattern.
org. openrewrite. java. spring. ChangeMethodParameterRequired
A method pattern that is used to find the method declarations to modify.
The new type of the parameter that gets updated.
A zero-based index that indicates the position at which the parameter will be added.
mod run . --recipe= org. openrewrite. java. spring. ChangeMethodParameter \
-P methodPattern= 'com. yourorg. A foo(int, int)' \
-P parameterType= java. lang. String \
-P parameterIndex=0Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.