Is there a warning to ignore a local warning from the parser?

Suppose I have a method like this:
public static void writeFromBean( OutputStream os, Object bean, int length ) throws IOException {
write( os, length );
}

i.e.: the "bean" argument is actually not used, but is needed because the superinterface imposes it: how can I tell IDEA not to show this as a "warning" (i.e. yellow mark)? Is there some way to do it? For example something like Object /ignored/bean?

2 comments
Comment actions Permalink

Sorry, of course i meant "is there a MARKER to ignore a local warning from the parser?"!

0
Comment actions Permalink

- place the caret on the warning
- wait (if needed) until the light-bulb occurs
- press alt-enter: A popup appears
- use up/down to select at the item that corresponds to the warning
- then press "right" to see a menu that allows you to suppress the warning
   on different levels
It is good style to suppress the warning on the smallest possible level.
Also it's worth to invoke the action (also in the sub-popup) to open the
inspection's setting: Often times you can re-configure the inspection
so that it better matches your code.

Davide Baroncelli wrote:

Sorry, of course i meant "is there a MARKER to ignore a local warning from the parser?"!

---
Original message URL: http://www.jetbrains.net/devnet/message/499969#499969

0

Please sign in to leave a comment.