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.
|
||||
// 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")
|
||||
// The class still can be used, if you want to create a pair for existing intention with additional checker
|
||||
abstract class IntentionBasedInspection<TElement : PsiElement>(
|
||||
private val intentionInfos: List<IntentionBasedInspection.IntentionData<TElement>>,
|
||||
protected open val problemText: String?
|
||||
) : AbstractKotlinInspection() {
|
||||
|
||||
@Suppress("DEPRECATION")
|
||||
@Deprecated("Please do not use for new inspections. Use AbstractKotlinInspection as base class for them")
|
||||
constructor(
|
||||
intention: KClass<out SelfTargetingRangeIntention<TElement>>,
|
||||
problemText: String? = null
|
||||
|
||||
Reference in New Issue
Block a user