Community
Participate
Working Groups
Build I20071212-1800. While debugging test case for dom bug 212857, I saw that the SuppressWarning("unused") was flagged as unnecessary when the corresponding compiler option "Parameter is never read" is not set. A more simple test case still shows this issue: public class X { void m(@SuppressWarnings("unused") int arg) { } }
There seems to remain some issues in cases the warning token corresponds to a family of irritants... for instance "unused" denotes unused arguments, variables etc... which means it is quite hard to tell.
It behaves as expected. @SuppressWarnings("unused") is not used if the warning option unusedArgument is not set. This is unrelated to the fact that the warning token unused covers the warning for unusedArgument. By default, unusedArgument is not set. Closing as INVALID.
This is consistent with other errors too. Verified for 3.8M2