Might be 'const'
Reports top-level val
properties in objects that might be declared as const
for better performance and Java interoperability.
Example:
object A {
val foo = 1
}
After the quick-fix is applied:
object A {
const val foo = 1
}
Inspection Details | |
---|---|
Available in: | IntelliJ IDEA 2023.3, Qodana for JVM 2023.3 |
Plugin: | Kotlin, @snapshot@ |
Last modified: 13 July 2023