In eclipse, I can say to editor (and of course compiler) I don't use that variable so remove the underline with @SuppressWarnings("unused")
Anyone 开发者_开发百科knows in Netbeans 6.9 how can I remove the underline of unused variables in editor?
Thanks in advance
Have you tried adding @SuppressWarnings("unused")
by hand?
A bit of extra research tells me that javac -X
includes a set of warnings that can be turned on/off using -Xlint. Unfortunately, "unused" is not on the list. So if (and that's a "big if") the netbeans compiler is based on javac, you might be out of luck.
精彩评论