
|
If you were logged in you would be able to see more operations.
|
|
|
| Review Type: |
Review by Product Owner
|
|
The warning "Parameter is never used" is generated to often. If a method is implemented in a class because it implements a given interface, the paramete may not be used (no warning). If it overrides a method the same is true. The parameter could not be deleted, but the current implementation may choose not to use it (so, no warning, please).
|
|
Description
|
The warning "Parameter is never used" is generated to often. If a method is implemented in a class because it implements a given interface, the paramete may not be used (no warning). If it overrides a method the same is true. The parameter could not be deleted, but the current implementation may choose not to use it (so, no warning, please). |
Show » |
|
Example:
public function buildChildren(numOfChildren):void
{
}
Reading this in production code would be confusing, I might assume that the designer forgot to implement it. Compare that to this:
public function buildChildren(numOfChildren):void
{
numOfChildren = NaN;
}
Here the designer has implicitly said "This value is not in use in this class"