Files
Frederik Haselmeier 0e7e9fba23 [kotlin] Ported ReplaceJvmFieldWithConstFix to K2
Also fixed not taking into account nullable types in MayBeConstantInspection to align with the behavior of the quick-fix.

^KTIJ-29535 fixed

GitOrigin-RevId: 5a97bc73b328ef1e3cd840d9f96ba0299c8acc57
2024-08-02 10:11:13 +00:00

6 lines
303 B
Kotlin

// "Replace '@JvmField' with 'const'" "true"
// WITH_STDLIB
const val three = 3
<caret>@JvmField private val text = "${2 + three}"
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ReplaceJvmFieldWithConstFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ReplaceJvmFieldWithConstFix