[Gradle] Update 'Scheduled for removal' deprecations
^KT-58220 Verification Pending
This commit is contained in:
committed by
Space Team
parent
f98765f254
commit
25c2fe03a9
+1
-1
@@ -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? {
|
||||
|
||||
+3
-3
@@ -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>,
|
||||
|
||||
Reference in New Issue
Block a user