Inspectopedia
 
2024.3

Parameter name differs from parameter in overridden or overloaded method

Warning
New
Last modified: 03 December 2024

Reports parameters whose names differ from the corresponding parameters of the methods they override or overload. While legal in Java, such inconsistent names may be confusing and decrease the documentation benefits of good naming practices.

Example:

After the quick-fix is applied:

Use the options to indicate whether to ignore overridden parameter names that are only a single character long or come from a library method. Both can be useful if you do not wish to be bound by dubious naming conventions used in libraries.