Community
Participate
Working Groups
Hi, I would like to be able to set an 'ignore main method' option for the Compiler preferences unused parameters problem marker. Its the only case where one is forced into a situation where a parameters (args) can be ignored. Channing
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.