Remove redundant @UseExperimental(ExperimentalStdlibApi) annotations
This commit is contained in:
committed by
Nikolay Igotti
parent
1426a8309a
commit
06b0555807
@@ -42,7 +42,6 @@ public fun ByteArray.stringFromUtf8OrThrow() : String {
|
|||||||
* @throws [IllegalCharacterConversionException] if the input is invalid.
|
* @throws [IllegalCharacterConversionException] if the input is invalid.
|
||||||
*/
|
*/
|
||||||
@Deprecated("Use decodeToString instead", ReplaceWith("decodeToString(start, start + size, throwOnInvalidSequence = true)"))
|
@Deprecated("Use decodeToString instead", ReplaceWith("decodeToString(start, start + size, throwOnInvalidSequence = true)"))
|
||||||
@UseExperimental(ExperimentalStdlibApi::class)
|
|
||||||
public fun ByteArray.stringFromUtf8OrThrow(start: Int = 0, size: Int = this.size) : String {
|
public fun ByteArray.stringFromUtf8OrThrow(start: Int = 0, size: Int = this.size) : String {
|
||||||
checkBoundsIndexes(start, start + size, this.size)
|
checkBoundsIndexes(start, start + size, this.size)
|
||||||
try {
|
try {
|
||||||
@@ -92,7 +91,6 @@ public fun String.toUtf8OrThrow() : ByteArray {
|
|||||||
* @throws [IllegalCharacterConversionException] if the input is invalid.
|
* @throws [IllegalCharacterConversionException] if the input is invalid.
|
||||||
*/
|
*/
|
||||||
@Deprecated("Use encodeToByteArray instead", ReplaceWith("encodeToByteArray(start, start + size, throwOnInvalidSequence = true)"))
|
@Deprecated("Use encodeToByteArray instead", ReplaceWith("encodeToByteArray(start, start + size, throwOnInvalidSequence = true)"))
|
||||||
@UseExperimental(ExperimentalStdlibApi::class)
|
|
||||||
public fun String.toUtf8OrThrow(start: Int = 0, size: Int = this.length) : ByteArray {
|
public fun String.toUtf8OrThrow(start: Int = 0, size: Int = this.length) : ByteArray {
|
||||||
checkBoundsIndexes(start, start + size, this.length)
|
checkBoundsIndexes(start, start + size, this.length)
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -71,7 +71,6 @@ internal fun ThrowNotImplementedError(): Nothing {
|
|||||||
|
|
||||||
@ExportForCppRuntime
|
@ExportForCppRuntime
|
||||||
internal fun ThrowCharacterCodingException(): Nothing {
|
internal fun ThrowCharacterCodingException(): Nothing {
|
||||||
@UseExperimental(ExperimentalStdlibApi::class)
|
|
||||||
throw CharacterCodingException()
|
throw CharacterCodingException()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user