[K/N] Advance deprecation level of subarrayContentToString to ERROR
This commit is contained in:
@@ -160,7 +160,7 @@ actual class ArrayList<E> private constructor(
|
||||
}
|
||||
|
||||
override fun toString(): String {
|
||||
@Suppress("DEPRECATION")
|
||||
@Suppress("DEPRECATION_ERROR")
|
||||
return array.subarrayContentToString(offset, length)
|
||||
}
|
||||
|
||||
|
||||
@@ -23,7 +23,8 @@ internal fun checkCopyOfRangeArguments(fromIndex: Int, toIndex: Int, size: Int)
|
||||
* Returns a string representation of the contents of the subarray of the specified array as if it is [List].
|
||||
*/
|
||||
@kotlin.internal.InlineOnly
|
||||
@Deprecated("This function will become internal soon.", level = DeprecationLevel.WARNING)
|
||||
@Deprecated("This function will become internal soon.")
|
||||
@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5")
|
||||
public inline fun <T> Array<out T>.subarrayContentToString(offset: Int, length: Int): String {
|
||||
val sb = StringBuilder(2 + length * 3)
|
||||
sb.append("[")
|
||||
|
||||
Reference in New Issue
Block a user