Redundant explicit 'this'
Reports an explicit this
when it can be omitted.
Example:
class C {
private val i = 1
fun f() = this.i
}
The quick-fix removes the redundant this
:
class C {
private val i = 1
fun f() = i
}
Inspection Details | |
---|---|
Available in: | IntelliJ IDEA 2023.3, Qodana for JVM 2023.3 |
Plugin: | Kotlin, @snapshot@ |
Last modified: 13 July 2023