| Summary: | "Method parameter not used" warning incorrectly disappears when @param in javadoc | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Shawn Heisey <eclipse> | ||||
| Component: | Core | Assignee: | Till Brychcy <register.eclipse> | ||||
| Status: | CLOSED INVALID | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | jarthana, register.eclipse, stephan.herrmann | ||||
| Version: | 4.6 | ||||||
| Target Milestone: | 4.7 M7 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Shawn Heisey
Stephan, what's your take here? When I opened this, I did realize that this isn't going to be a trivial change. Likely what's happening is that the code is counting usages and the warning goes away when the number is above zero. Best guess is that a fix would involve either having multiple usage counters or simply not counting @param usages. It might be challenging with the latter solution to make sure they are still highlighted when the variable is clicked. I have not examined the code at all, so this assessment could very well be wrong. There's a setting for that: Go to Preferences > Java > Compiler > Error / Warnings, Section "Unnecessary Code" deselect "Ignore unused parameters documented with '@param' tag" Created attachment 267916 [details]
Error/Warning preferences screenshot
This shows that the @param-related checkbox is unchecked in the Errors/Warnings preferences screen.
I found that @param setting in the preferences and unchecked it, then let it rebuild the workspace. There's still not a warning on a parameter that is unused other than the @param mention. PEBCAK. There were project-specific settings. Changed that option there and now it's working. Closing the bug. |