iberck
iberck

Reputation: 2430

Netbeans Editor, how can I supress warnings?

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

Upvotes: 1

Views: 1488

Answers (1)

Stephen C
Stephen C

Reputation: 718698

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.

Upvotes: 1

Related Questions