Back to Intellij Community

InlineClassDeprecatedMigration

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

2025.3-rc-2408 B
Original Source

Reports inline classes that are deprecated and cause compilation warnings in Kotlin 1.5 and later. See What's new in Kotlin 1.5.0

Example:

inline class Password(val s: String)

After the quick-fix is applied:

@JvmInline
  value class Password(val s: String)

Inspection is available for Kotlin language level starting from 1.5.