From e11f7daae46e7aa25b33a2b383954d3127999302 Mon Sep 17 00:00:00 2001 From: "Aleksei.Cherepanov" Date: Tue, 16 May 2023 15:52:35 +0200 Subject: [PATCH] Disable JvmTargetDefaultSubstitutor Disable JvmTargetDefaultSubstitutor as far as minimal supported jvmTarget version is 1.8 #KTIJ-25445 Fixed --- .../jetbrains/kotlin/idea/explicitDefaultSubstitutors.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build-common/src/org/jetbrains/kotlin/idea/explicitDefaultSubstitutors.kt b/build-common/src/org/jetbrains/kotlin/idea/explicitDefaultSubstitutors.kt index 218969ed677..ebaded2a5d4 100644 --- a/build-common/src/org/jetbrains/kotlin/idea/explicitDefaultSubstitutors.kt +++ b/build-common/src/org/jetbrains/kotlin/idea/explicitDefaultSubstitutors.kt @@ -13,8 +13,9 @@ import kotlin.reflect.KClass import kotlin.reflect.KProperty1 import kotlin.reflect.full.findAnnotation -val defaultSubstitutors: Map, Collection> = - mapOf(K2JVMCompilerArguments::class to listOf(JvmTargetDefaultSubstitutor)) +//used by IJ facet import +@SuppressWarnings("unused") +val defaultSubstitutors: Map, Collection> = emptyMap() sealed class ExplicitDefaultSubstitutor { abstract val substitutedProperty: KProperty1 @@ -27,6 +28,7 @@ sealed class ExplicitDefaultSubstitutor { } } +@Deprecated(message = "Minimal supported jvmTarget version is 1.8") object JvmTargetDefaultSubstitutor : ExplicitDefaultSubstitutor() { override val substitutedProperty get() = K2JVMCompilerArguments::jvmTarget