开发者

Netbeans Editor, how can I supress warnings?

开发者 https://www.devze.com 2023-01-21 05:58 出处:网络
In eclipse, I can say to editor (and of course compiler) I don\'t use that variable so remove the underline with

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号