[spellchecker] review fix: abstract class -> interface

GitOrigin-RevId: a60c94d5adef5d40472e41f67b345d60a7b7b4ca
This commit is contained in:
Denis Mukhametianov
2024-05-14 08:59:59 +02:00
committed by intellij-monorepo-bot
parent 7ad7377de7
commit c400f3c23f

View File

@@ -9,7 +9,7 @@ import com.intellij.spellchecker.DictionaryLayer
import org.jetbrains.annotations.ApiStatus.Internal import org.jetbrains.annotations.ApiStatus.Internal
@Internal @Internal
abstract class SpellCheckerQuickFixFactory { interface SpellCheckerQuickFixFactory {
companion object { companion object {
private val EP_NAME = ExtensionPointName.create<SpellCheckerQuickFixFactory>("com.intellij.spellchecker.quickFixFactory") private val EP_NAME = ExtensionPointName.create<SpellCheckerQuickFixFactory>("com.intellij.spellchecker.quickFixFactory")
@@ -34,7 +34,7 @@ abstract class SpellCheckerQuickFixFactory {
} }
} }
open fun createRename(element: PsiElement): LocalQuickFix? = null fun createRename(element: PsiElement): LocalQuickFix? = null
open fun createChangeToVariantsFixes(element: PsiElement, rangeInElement: TextRange, word: String): List<LocalQuickFix>? = null fun createChangeToVariantsFixes(element: PsiElement, rangeInElement: TextRange, word: String): List<LocalQuickFix>? = null
open fun createSaveToFix(element: PsiElement, rangeInElement: TextRange, word: String, layer: DictionaryLayer?): LocalQuickFix? = null fun createSaveToFix(element: PsiElement, rangeInElement: TextRange, word: String, layer: DictionaryLayer?): LocalQuickFix? = null
} }