java_reorder_parameters
Reorder parameters in Java methods and record constructors, with automatic updating of all call sites.
Instructions
Reorder parameters in a Java method or record constructor and update all call sites. For Java records, use methodName "" or the class name - the tool auto-detects records and updates both the record declaration AND all "new RecordName(...)" call sites.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | Preview changes without applying (default: true) | |
| className | Yes | Fully qualified class name containing the method or record | |
| methodName | Yes | Method name. For record constructors, use "<init>" or the class name (e.g., "MyRecord") | |
| javaVersion | No | Java version to use (e.g., "17.0.16-amzn", "21.0.8-tem") | |
| projectPath | Yes | Path to the Java project root | |
| newParameterOrder | Yes | New order of parameter names | |
| existingParameterTypes | No | Existing parameter types to match specific overload |