Summary: | Compiler preferences: Unused parameters - ignore main | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Channing Walton <channingwalton> |
Component: | Core | Assignee: | Philipe Mulet <philippe_mulet> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | enhancement | ||
Priority: | P3 | ||
Version: | 2.1 | ||
Target Milestone: | 2.1 RC1 | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: |
Description
Channing Walton
2002-11-27 11:36:04 EST
Nice to have, will keep for later. Resurrecting for investigation, as per request for RC1. Is it worth generalising this so that you can ignore designated methods ? I see where you are going, but I would keep it simple and reasonable. There are a few obvious ones as main(), and we could add more of these down the roads (or even introduce a list of methods to avoid, and/or @ignore-unused-parameter tag in javadoc etc...). Actually, I would prefer the C++ approach, where unused parameter names can be omitted, so no diagnosis is issued (would make our life so much simpler). Simple is good :-) Unused parameter diagnosis will now ignore parameters in an abstract method, a main method, an implementation of an abstract method or a method overriding a concrete one. Fixed Cool - thanks Philippe. Verified. |