SnuKies
SnuKies

Reputation: 1723

Comments with effect in Android Studio

Recently, while looking over this sample, on this line there is //noinspection unchecked commentary that suppress the warning "Unchecked cast".

What are other such commentaries? So far I only knew that @SurpressLint had such powers.

Upvotes: 0

Views: 88

Answers (1)

Valentin Yuryev
Valentin Yuryev

Reputation: 814

When suppressing an inspection, IntelliJ IDEA inserts a special comment that tells the code analysis engine to ignore the issues found by this inspection in the specific piece of code.

When disabling an inspection, you just turn it off so the code analysis engine just ignores the code issues found by this inspection.

https://www.jetbrains.com/help/idea/suppressing-inspections.html

Upvotes: 1

Related Questions