Inspectopedia Help

Redundant 'constructor' keyword

Reports redundant constructor keywords on primary constructors.

Example:

class Foo constructor(x: Int, y: Int)

After the quick-fix is applied:

class Foo(x: Int, y: Int)

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3

Plugin:

Kotlin, @snapshot@

Last modified: 13 July 2023