"Surround with null check" is now a high-priority action

This commit is contained in:
Mikhail Glukhikh
2016-10-25 14:31:10 +03:00
parent 35d104782e
commit e56a10aa41
@@ -16,6 +16,7 @@
package org.jetbrains.kotlin.idea.quickfix
import com.intellij.codeInsight.intention.HighPriorityAction
import com.intellij.codeInsight.intention.IntentionAction
import com.intellij.openapi.editor.Editor
import com.intellij.openapi.project.Project
@@ -35,7 +36,7 @@ import org.jetbrains.kotlin.types.typeUtil.isNullabilityMismatch
class SurroundWithNullCheckFix(
expression: KtExpression,
val nullableExpression: KtExpression
) : KotlinQuickFixAction<KtExpression>(expression) {
) : KotlinQuickFixAction<KtExpression>(expression), HighPriorityAction {
override fun getFamilyName() = text