Warning "Private Member Not Used" cannot be suppressed?

Is it by intention that some inspection warnings cannot be suppressed?
In some code I came accross a private method that is called by native helper code.
Idea shows "Private method requestSample(int) is never used". In the intention popup there is no entry "Suppress 'Unused Symbol' for method"?!
Why? I propose to have every inspection suppressable.
There always may be a weird reason why a particular inspection warning should be suppresed.

2 comments
Comment actions Permalink

The reason is that this warning is not generated by an inspection...

"Stephen Kelvin" <mail@gremlin.info> wrote in message
news:9332927.1107352926283.JavaMail.itn@is.intellij.net...

Is it by intention that some inspection warnings cannot be suppressed?
In some code I came accross a private method that is called by native

helper code.

Idea shows "Private method requestSample(int) is never used". In the

intention popup there is no entry "Suppress 'Unused Symbol' for method"?!

Why? I propose to have every inspection suppressable.
There always may be a weird reason why a particular inspection warning

should be suppresed.
>


0
Comment actions Permalink

Got that: I understand the technical reason.
But from a user's point of view I don't want to deal with two different beasts. Is it possible to make every warning be an inspection (or at least appear so)?

Probably real compiler errors are a different thing. I can't imagine that someone wants those suppressed. Or ... wait ... a suppression would be a fix for every open "Good code is red" bug ;)

0

Please sign in to leave a comment.