On 2/14/11 3:28 PM, Daniel Kulp wrote:
However, as Andreas just pointed out, the annotation is just plain wrong in
this case. It's a PUBLIC method on a PUBLIC class. There is absolutely no
way it should be marked as unused.
I think the idea (hahaha) of the warning is simply to note that you have
methods that are un-exercised in your project. Adding a test case for
such methods will cause IDEA to clear the warning - which is just that,
a warning. From my POV, I don't mind this, and in fact find it quite
useful.
Alas, apparently [1] Eclipse and IDEA don't play together well here. I
think you should be able to get Eclipse to stop complaining about these
by looking in Java -> Compiler -> Errors/Warnings -> Annotations ->
Unhandled Warning Token.
Sort of a catch-22, though, trading a warning for a warning.
--Glen
[1]
http://devnet.jetbrains.net/message/5282015;jsessionid=9EFA57EAD2DB40FB50E45830343A5267?tstart=0
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]