Fix #KT-26902 Bad quickfix name for "Call on non-null type may be reduced"

This commit is contained in:
kenji tomita
2018-09-18 19:52:30 +09:00
committed by Mikhail Glukhikh
parent 4ca0c60066
commit 6d9fb4f382
3 changed files with 3 additions and 3 deletions
@@ -25,7 +25,7 @@ import org.jetbrains.kotlin.psi.KtPsiFactory
import org.jetbrains.kotlin.psi.KtQualifiedExpression
class RenameUselessCallFix(val newName: String) : LocalQuickFix {
override fun getName() = "Rename useless call to '$newName'"
override fun getName() = "Change call to '$newName'"
override fun getFamilyName() = name
@@ -1,5 +1,5 @@
// WITH_RUNTIME
// FIX: Rename useless call to 'isBlank'
// FIX: Change call to 'isBlank'
val s: String? = ""
val blank = s<caret>?.isNullOrBlank()
@@ -1,5 +1,5 @@
// WITH_RUNTIME
// FIX: Rename useless call to 'isBlank'
// FIX: Change call to 'isBlank'
val s: String? = ""
val blank = s?.isBlank()