Inspectopedia
 
2024.3

Redundant setter parameter type

Warning
New
Last modified: 03 December 2024

Reports explicitly specified parameter types in property setters.

Setter parameter type always matches the property type, so it's not required to be explicit. The 'Remove explicit type specification' quick-fix allows amending the code accordingly.

Examples:

After the quick-fix is applied: