Disable warning in IntelliJ for one line

后端 未结 7 1135
庸人自扰
庸人自扰 2020-12-15 02:03

I have a Java code line where IntelliJ displays a warning. How do I silence the warning in that particular line, without affecting warnings displayed in other lines?

7条回答
  •  悲哀的现实
    2020-12-15 02:51

    Mostly in IntelliJ, you can click on the line and Alt+Enter, and it will have options for suppressing the warning, among other things.

提交回复
热议问题