Showing warning for unused method parameter?

See

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

@SuppressWarnings("unused")

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)