Search code examples
javaintellij-ideastatic-analysis

IntelliJ-Idea disable inspection: Actual value of parameter is always


Is there a way to disable this inspection? I know, this maybe be a bad design, but I still would like to disable it.


Solution

  • Find an instance of the inspection, and hit ALT+ENTER to open the content menu. You'll see a suggestion there that looks like "Inline value 'XYZ' for parameter 'myParameter'". Click the right arrow next to it to open a second context menu, and there you'll find options to edit the inspection setting in order to tune the conditions that will produce it, suppress it for the method/class/parameter, or even disable it altogether.