[Gradle] Update 'Scheduled for removal' deprecations

^KT-58220 Verification Pending
This commit is contained in:
Sebastian Sellmair
2023-04-25 09:57:23 +02:00
committed by Space Team
parent f98765f254
commit 25c2fe03a9
4 changed files with 8 additions and 8 deletions
@@ -36,7 +36,7 @@ fun KotlinToolingVersion(kotlinVersion: KotlinVersion, classifier: String? = nul
}
@Deprecated(
"Use KotlinToolingVersion instead. Scheduled for removal with Kotlin 1.9",
"Use KotlinToolingVersion instead. Scheduled for removal with Kotlin 2.0",
replaceWith = ReplaceWith("KotlinToolingVersion(kotlinVersionString)")
)
fun KotlinToolingVersionOrNull(kotlinVersionString: String): KotlinToolingVersion? {
@@ -168,21 +168,21 @@ internal fun <T> createResultSet(initialSize: Int = 16): MutableSet<T> {
//region Deprecations
@Suppress("unused")
@Deprecated("Scheduled for removal in 1.8", level = DeprecationLevel.ERROR)
@Deprecated("Scheduled for removal in 2.0", level = DeprecationLevel.ERROR)
@PublishedApi
internal fun <T> createResultSet(withValue: T, initialSize: Int = 16): MutableSet<T> {
return LinkedHashSet<T>(initialSize).also { it.add(withValue) }
}
@Suppress("unused")
@Deprecated("Scheduled for removal in 1.8", level = DeprecationLevel.ERROR)
@Deprecated("Scheduled for removal in 2.0", level = DeprecationLevel.ERROR)
@PublishedApi
internal fun <T> createResultSet(withValues: Iterable<T>, initialSize: Int = 16): MutableSet<T> {
return LinkedHashSet<T>(initialSize).also { it.addAll(withValues) }
}
@Suppress("unused")
@Deprecated("Scheduled for removal in 1.8", level = DeprecationLevel.ERROR)
@Deprecated("Scheduled for removal in 2.0", level = DeprecationLevel.ERROR)
@PublishedApi
internal inline fun <T> closureTo(
destination: MutableSet<T>,