Back to Intellij Community

KotlinRedundantDiagnosticSuppress

plugins/kotlin/code-insight/descriptions/resources-en/inspectionDescriptions/KotlinRedundantDiagnosticSuppress.html

2025.3-rc-2340 B
Original Source

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)
  }