In eclipse, if we install the following
Settings β Java β Error / Warnings β Unnecessary code β Local variable is never read ==> Error
then even when using the @SuppressWarnings ("unused") method, the method only suppresses a warning about the unused method. An unused variable is displayed as Error.
(I know you wanted them to be βwarnings,β but all I can think of is βmistakesβ!)
brainOverflow
source share