Inspectopedia Help

Join declaration and assignment

Reports property declarations that can be joined with the following assignment.

Example:

val x: String x = System.getProperty("")

The quick fix joins the declaration with the assignment:

val x = System.getProperty("")

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3

Plugin:

Kotlin, @snapshot@

Last modified: 13 July 2023