Renaming method parameters

You can rename the parameters of a method by renaming the parameter's declaration as well as all references to the parameters inside the method body.

Use the Change Method Signature command to rename one or more parameters of a method as well as all references to these parameters.

To rename a single parameter, it is often easier to:

Related concepts

Java development tools (JDT)

Related tasks

Changing method signature

Related reference

Refactoring actions
Refactoring dialogs
Refactoring preferences

Legal notices