Skip to content

How to solve false positives #186

Answered by brichbash
YukiInu asked this question in Q&A
Discussion options

You must be logged in to vote

Hello,

At the moment, you cannot exclude an instance of a problem, but you can exclude the inspection only for a method/class by adding the @SuppressWarnings("<inspection-id>") annotation. In your case, if you want to exclude the "Deprecated API usage" inspection, adding @SuppressWarnings("deprecation") to class/method should ignore the inspection.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by YukiInu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants