Fix OVERRIDE_DEPRECATION warnings in project code

This commit is contained in:
Dmitriy Novozhilov
2021-08-30 12:31:11 +03:00
parent 69c3831865
commit d46e2dd749
34 changed files with 70 additions and 33 deletions
@@ -23,5 +23,6 @@ interface LanguageSettingsBuilder : LanguageSettings {
fun optIn(annotationName: String)
@Deprecated("Unsupported and will be removed in next major releases", replaceWith = ReplaceWith("optInAnnotationsInUse"))
override val experimentalAnnotationsInUse: Set<String>
}
}
@@ -38,6 +38,8 @@ internal abstract class KotlinJvmOptionsBase : org.jetbrains.kotlin.gradle.dsl.K
}
private var includeRuntimeField: kotlin.Boolean? = null
@Deprecated(message = "This option has no effect and will be removed in a future release.", level = DeprecationLevel.ERROR)
override var includeRuntime: kotlin.Boolean
get() = includeRuntimeField ?: false
set(value) {
@@ -51,6 +53,7 @@ internal abstract class KotlinJvmOptionsBase : org.jetbrains.kotlin.gradle.dsl.K
javaParametersField = value
}
@Deprecated(message = "This option is not working well with Gradle caching and will be removed in the future.", level = DeprecationLevel.WARNING)
override var jdkHome: kotlin.String? = null
internal var jvmTargetField: kotlin.String? = null
@@ -70,6 +73,8 @@ internal abstract class KotlinJvmOptionsBase : org.jetbrains.kotlin.gradle.dsl.K
}
private var noReflectField: kotlin.Boolean? = null
@Deprecated(message = "This option has no effect and will be removed in a future release.", level = DeprecationLevel.ERROR)
override var noReflect: kotlin.Boolean
get() = noReflectField ?: true
set(value) {
@@ -77,6 +82,8 @@ internal abstract class KotlinJvmOptionsBase : org.jetbrains.kotlin.gradle.dsl.K
}
private var noStdlibField: kotlin.Boolean? = null
@Deprecated(message = "This option has no effect and will be removed in a future release.", level = DeprecationLevel.ERROR)
override var noStdlib: kotlin.Boolean
get() = noStdlibField ?: true
set(value) {
@@ -84,6 +91,8 @@ internal abstract class KotlinJvmOptionsBase : org.jetbrains.kotlin.gradle.dsl.K
}
private var useIRField: kotlin.Boolean? = null
@Deprecated(message = "This option has no effect and will be removed in a future release.", level = DeprecationLevel.WARNING)
override var useIR: kotlin.Boolean
get() = useIRField ?: false
set(value) {