From ed5ba01e8597264dbbb5c66960014b39e70e3a2f Mon Sep 17 00:00:00 2001 From: Denis Zharkov Date: Wed, 14 Oct 2015 11:45:17 +0300 Subject: [PATCH] Temporary revert moving `CharSequence.charAt` because of markdown parser --- libraries/stdlib/src/kotlin/collections/DeprecatedBuiltins.kt | 3 --- libraries/stdlib/src/kotlin/collections/MutableCollections.kt | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/stdlib/src/kotlin/collections/DeprecatedBuiltins.kt b/libraries/stdlib/src/kotlin/collections/DeprecatedBuiltins.kt index 3eaeafb6274..c0c52931ce9 100644 --- a/libraries/stdlib/src/kotlin/collections/DeprecatedBuiltins.kt +++ b/libraries/stdlib/src/kotlin/collections/DeprecatedBuiltins.kt @@ -30,9 +30,6 @@ public fun Map.Entry.getKey(): K = key @Deprecated("Use property 'value' instead", ReplaceWith("this.value")) public fun Map.Entry.getValue(): V = value -@Deprecated("Use operator 'get' instead", ReplaceWith("this[index]")) -public fun CharSequence.charAt(index: Int): Char = this[index] - @Deprecated("Use 'removeAt' instead", ReplaceWith("this.removeAt(index)")) public fun MutableList.remove(index: Int): E = removeAt(index) diff --git a/libraries/stdlib/src/kotlin/collections/MutableCollections.kt b/libraries/stdlib/src/kotlin/collections/MutableCollections.kt index bc48f18b874..e80ef670b2d 100644 --- a/libraries/stdlib/src/kotlin/collections/MutableCollections.kt +++ b/libraries/stdlib/src/kotlin/collections/MutableCollections.kt @@ -3,6 +3,9 @@ package kotlin +@Deprecated("Use operator 'get' instead", ReplaceWith("this[index]")) +public fun CharSequence.charAt(index: Int): Char = this[index] + /** * Adds the specified [element] to this mutable collection. */