Perhaps an example in the help file of first, a warning being displayed, then how to disable that warning (is it on a per file/class basis or can you put that tag immediately before a specific line) ?
Nick, you can disable warnings from inspections - just invoke one of "Suppress" intentions for that inspection (they are now in options list). It can be per statement/method/field/method. And now you can suppress our inspections by @SuppressWarnings annotation.
By using quickfix to suppress inspection result.
Eugene.
"Nick Pratt" <no_mail@jetbrains.com> wrote in message
news:24220933.1116439997449.JavaMail.javamailuser@localhost...
>
Could you explain a little more please?
Perhaps an example in the help file of first, a warning being displayed, then how to disable that warning (is it on a per file/class basis or can you put that tag immediately before a specific line) ?
Nick,
you can disable warnings from inspections - just invoke one of "Suppress"
intentions for that inspection (they are now in options list).
It can be per statement/method/field/method. And now you can suppress our
inspections by @SuppressWarnings annotation.
--
Anna Kozlova
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"
"Nick Pratt" <no_mail@jetbrains.com> wrote in message
news:339977.1116511472945.JavaMail.javamailuser@localhost...
>
then how to disable that warning (is it on a per file/class basis or can you
put that tag immediately before a specific line) ?
Yes, but how do you use this annotation - please show a code fragment with this annotation.
Here you are:
@SuppressWarnings("UNUSED_SYMBOL") public void foo() {
//noinspection LocalCanBeFinal
int i = 0;
}
But you needn't write them by hands.
--
Anna Kozlova
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"
"Nick Pratt" <no_mail@jetbrains.com> wrote in message
news:31050353.1116606561445.JavaMail.javamailuser@localhost...
this annotation.
>