IntelliJ inspection - exception, exception

This is the next question to 1832203. I also ask him a new question, because it seems that the publication of the answer to the question does not change its position on the java page, and therefore I worry that they will not recognize him. Sorry if I just stepped on these labels.

I'm new to IntelliJ - started using it two days ago, and I'm absolutely in love! One of the things I adore is code checks. However...

In one of my classes, I often throw exceptions without throwing them. If I cannot turn off (or lower) the inspection warning for this, then I see that I am going to ultimately ignore checks for at least this file (if not the entire project), which would be very unfortunate.

I did a search in the scan settings for the “exception” and did not find anything that exactly matches, so I turned them off all to see, and it still does it (even after the rebuild ... BTW, when are the revisions checked when saving? When rebuild ????), so I would really like help on how to do this at the info / typo level, which I will then ignore.

Using the free version if it matters

TIA to all those experienced IntelliJ warriors!

+4
source share
1 answer

Press Alt + Enter to display a popup, then press Right Arrow to view available options. You will see options there to suppress this current instance of the warning for this class, or completely disable it.

+5
source

Source: https://habr.com/ru/post/1309710/


All Articles