Make IntentionBasedInspection deprecated

This commit is contained in:
Mikhail Glukhikh
2017-04-27 16:07:59 +03:00
parent bb8091a6ca
commit 4b6667f599
@@ -37,6 +37,13 @@ import org.jetbrains.kotlin.psi.psiUtil.getStartOffsetIn
import org.jetbrains.kotlin.psi.psiUtil.startOffset
import kotlin.reflect.KClass
// This class was originally created to make possible switching inspection off and using intention instead.
// Since IDEA 2017.1, it's possible to have inspection severity "No highlighting, only fix"
// thus making the original purpose useless.
// The class will probably not be deleted in the close future,
// but do not use them in your new code.
@Suppress("DEPRECATION")
@Deprecated("Please do not use for new inspections. Use AbstractKotlinInspection as base class for them")
abstract class IntentionBasedInspection<TElement : PsiElement>(
val intentionInfos: List<IntentionBasedInspection.IntentionData<TElement>>,
protected open val problemText: String?