From bcbeab00d592ab84af4761aa62996358586e5824 Mon Sep 17 00:00:00 2001 From: Mikhail Glukhikh Date: Thu, 2 Nov 2017 12:20:46 +0300 Subject: [PATCH] Slightly change IntentionBasedInspection status Only constructor and not the whole class is now deprecated --- .../kotlin/idea/inspections/IntentionBasedInspection.kt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/idea/idea-analysis/src/org/jetbrains/kotlin/idea/inspections/IntentionBasedInspection.kt b/idea/idea-analysis/src/org/jetbrains/kotlin/idea/inspections/IntentionBasedInspection.kt index 9f025e66b4b..a72e5d3cf74 100644 --- a/idea/idea-analysis/src/org/jetbrains/kotlin/idea/inspections/IntentionBasedInspection.kt +++ b/idea/idea-analysis/src/org/jetbrains/kotlin/idea/inspections/IntentionBasedInspection.kt @@ -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( private val intentionInfos: List>, 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>, problemText: String? = null