Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

Skip a single warning

$
0
0

I'm rather new to Intellij Idea and I have a question,  that I've nowhere found an answer. Can I skip a SINGLE warning? I mean, can I make IDE not to highlight a line with yellow, without turning off the inspection rule, which considers this code construction suspicious. Let me explain the situation with one class of my AS3 code:

 

public class GraphInitiator extends Command {

    [Inject]

    public var ev:InitGraphEvent;

 

    override public function execute():void {

        var f:Function = this[ev.body.f];

        f();

    }

    //===========================

    private function InitUserPanel:void { // Unused method warning

        // Some code

    }

    //===========================

    private function InitInfoPanel():void { // Unused method warning

        // Some code

    }

    //===========================

}

 

Functions InitUserPanel and InitInfoPanel considered by IDE as unused, as they never called directly. So I'd like to skip this 2 warnings (like in Microsoft Word with green highlighted constructions) without turning "Unused method" inspection off. Is it possible?

 

Sorry for clumsy english.


Viewing all articles
Browse latest Browse all 5661


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>