Community
Participate
Working Groups
I like how eclipse now has the ability to highlight unused imports. I think an equally valuable feature would be to highlight unused method arguments. ie. public static String getProductName(String productId, String locale) { return ProductDao.getName(productId); } warning: method argument locale not used in method. where locale would be underlined in the method signature.
there's a compiler preference to hightlight them see preferences > java > compiler > unused parameters
I'll right I see it, thanks! So then how about the default setting should be warning and not ignore.
would be a bad choice - think about all interface methods that you're forced to implement sometimes and don't care about their params
Yeah you are right, just noticed that. What about highlighting only usused parameters in methods that are not part of the interface/inherited, too much processing? This is really what I would be interested in having highlighted.
What about highlighting only usused parameters in methods that are not inherited from an interface or class? This is really what I would be interested in having highlighted.
it'd the compiler that reports these warnings
Will see how we can make this warning more useful post 2.1
Resurrecting for investigation, as per request for RC1.
*** This bug has been marked as a duplicate of 25204 ***