UC.UP
Avoid unused parameters
Description
This rule flags any unused method parameter.
Unused parameters waste stack space and cause confusion.
Example
package UC;
class UP {
int findProduct (int x, int y) { // "y" is unused
return = x * x;
}
}
Repair
Remove unused parameters or check if the problem is the result of a typo.
|