Inspectopedia Help

Redundant diagnostic suppression

Reports usages of @Suppress annotations that can be safely removed because the compiler diagnostic they affect is no longer applicable in this context.

Example:

fun doSmth(@Suppress("UNUSED_PARAMETER") used: Int) { println(used) }

After the quick-fix is applied:

fun doSmth(used: Int) { println(used) }

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3

Plugin:

Kotlin, @snapshot@

Last modified: 13 July 2023