eclipse - Showing warning for unused method parameter? - Stack Overflow
Window / Preferences / Java / Compiler / ErrorsWarnings / Unnecessary Code / Value of parameter is not used
In old versions (before Eclipse Juno?) the setting was called "Parameter is never read".
Note:
If there is a valid reason for not using a parameter (e.g. it is used via reflection), you can suppress the warning by annotating the method with
Read full article from eclipse - Showing warning for unused method parameter? - Stack Overflow
No comments:
Post a Comment