Slightly change IntentionBasedInspection status
Only constructor and not the whole class is now deprecated
This commit is contained in:
+3
-4
@@ -40,15 +40,14 @@ import kotlin.reflect.KClass
|
|||||||
// This class was originally created to make possible switching inspection off and using intention instead.
|
// 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"
|
// Since IDEA 2017.1, it's possible to have inspection severity "No highlighting, only fix"
|
||||||
// thus making the original purpose useless.
|
// thus making the original purpose useless.
|
||||||
// The class will probably not be deleted in the close future,
|
// The class still can be used, if you want to create a pair for existing intention with additional checker
|
||||||
// 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>(
|
abstract class IntentionBasedInspection<TElement : PsiElement>(
|
||||||
private val intentionInfos: List<IntentionBasedInspection.IntentionData<TElement>>,
|
private val intentionInfos: List<IntentionBasedInspection.IntentionData<TElement>>,
|
||||||
protected open val problemText: String?
|
protected open val problemText: String?
|
||||||
) : AbstractKotlinInspection() {
|
) : AbstractKotlinInspection() {
|
||||||
|
|
||||||
|
@Suppress("DEPRECATION")
|
||||||
|
@Deprecated("Please do not use for new inspections. Use AbstractKotlinInspection as base class for them")
|
||||||
constructor(
|
constructor(
|
||||||
intention: KClass<out SelfTargetingRangeIntention<TElement>>,
|
intention: KClass<out SelfTargetingRangeIntention<TElement>>,
|
||||||
problemText: String? = null
|
problemText: String? = null
|
||||||
|
|||||||
Reference in New Issue
Block a user