[K/N] Advance deprecation level of subarrayContentToString to ERROR

This commit is contained in:
Abduqodiri Qurbonzoda
2021-03-27 04:37:07 +03:00
parent 7fdf7c6175
commit 91d42fe345
2 changed files with 3 additions and 2 deletions
@@ -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("[")