Issue Details (XML | Word | Printable)

Key: FDT-560
Type: Improvement Improvement
Status: Confirmed Confirmed
Priority: Minor Minor
Assignee: FDT Team
Reporter: Arne Deutsch
Votes: 2
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
FDT

Do not show warning "Parameter is never used" if method is implemented from an interface or is overriden

Created: 23/Jun/09 04:58 PM   Updated: 22/Jun/12 06:42 PM
Component/s: Core (Deprecated)
Affects Version/s: FDT 4.5.2
Fix Version/s: FDT
Security Level: public

Time Tracking:
Not Specified

Review Type: Review by Product Owner


 Description  « Hide
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).

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Alan K (Deprecated) added a comment - 29/Jun/09 03:16 PM
I like how it is now. It encourages the designer to write self-documenting code.

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"


Alan K (Deprecated) added a comment - 18/Mar/11 02:42 PM
Whoa - I commented on this feature almost 2 years ago....

weird....

See this idea: http://bugs.powerflasher.com/jira/browse/FDT-1885