bug icon indicating copy to clipboard operation
bug copied to clipboard

Verify unused

Open som-snytt opened this issue 6 years ago • 3 comments

It would be nice if -Xlint also verified that an element annotated unused is in fact unused.

Currently it's just an exemption from the unused warning.

Probably it's not necessary to add an option, -Xlint:used for this case, although the LOL factor is tempting.

som-snytt avatar Jul 13 '19 17:07 som-snytt

Agreed, there's no need for an option to disable verifying that the unused-parameter-suppressing annotation is on a parameter that is actually used.

dwijnand avatar Jul 17 '19 10:07 dwijnand

Agreed, there's no need for an option to disable verifying that the unused-parameter-suppressing annotation is on a parameter that is actually used.

Alternatively I would suggest -Xlint:confused.

Jasper-M avatar Jul 17 '19 11:07 Jasper-M