Fix #KT-26353 'Make variable immutable' is a bad name for a quickfix that changes 'var' to 'val'
This commit is contained in:
committed by
Mikhail Glukhikh
parent
e85dcfc3e3
commit
e5841441c9
@@ -36,7 +36,7 @@ class ChangeVariableMutabilityFix(
|
||||
private val actionText: String? = null
|
||||
) : KotlinQuickFixAction<KtValVarKeywordOwner>(element) {
|
||||
|
||||
override fun getText() = actionText ?: if (makeVar) "Make variable mutable" else "Make variable immutable"
|
||||
override fun getText() = actionText ?: if (makeVar) "Change to var" else "Change to val"
|
||||
|
||||
override fun getFamilyName(): String = text
|
||||
|
||||
|
||||
Reference in New Issue
Block a user