diff --git a/libraries/stdlib/common/src/kotlin/TextH.kt b/libraries/stdlib/common/src/kotlin/TextH.kt index 4cc13acab51..cd5d183d00c 100644 --- a/libraries/stdlib/common/src/kotlin/TextH.kt +++ b/libraries/stdlib/common/src/kotlin/TextH.kt @@ -82,13 +82,6 @@ expect enum class RegexOption { MULTILINE } -/** - * The exception thrown when a character encoding or decoding error occurs. - */ -@SinceKotlin("1.3") -@ExperimentalStdlibApi -public expect open class CharacterCodingException() : Exception - // From char.kt diff --git a/libraries/stdlib/js/src/kotlin/text/CharacterCodingExceptionJs.kt b/libraries/stdlib/js/src/kotlin/text/CharacterCodingExceptionJs.kt new file mode 100644 index 00000000000..d8d48b7744e --- /dev/null +++ b/libraries/stdlib/js/src/kotlin/text/CharacterCodingExceptionJs.kt @@ -0,0 +1,15 @@ +/* + * Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. + */ + +package kotlin.text + +/** + * The exception thrown when a character encoding or decoding error occurs. + */ +@SinceKotlin("1.3") +@ExperimentalStdlibApi +public actual open class CharacterCodingException(message: String?) : Exception(message) { + actual constructor() : this(null) +} diff --git a/libraries/stdlib/js/src/kotlin/text/StringBuilderJs.kt b/libraries/stdlib/js/src/kotlin/text/StringBuilderJs.kt index 7031b210418..b30eb9e52bc 100644 --- a/libraries/stdlib/js/src/kotlin/text/StringBuilderJs.kt +++ b/libraries/stdlib/js/src/kotlin/text/StringBuilderJs.kt @@ -78,13 +78,3 @@ public actual class StringBuilder(content: String = "") : Appendable, CharSequen @SinceKotlin("1.3") @Suppress("EXTENSION_SHADOWED_BY_MEMBER", "NOTHING_TO_INLINE") public actual inline fun StringBuilder.clear(): StringBuilder = this.clear() - - -/** - * The exception thrown when a character encoding or decoding error occurs. - */ -@SinceKotlin("1.3") -@ExperimentalStdlibApi -public actual open class CharacterCodingException(message: String?) : Exception(message) { - actual constructor() : this(null) -} diff --git a/libraries/stdlib/src/kotlin/text/CharacterCodingException.kt b/libraries/stdlib/src/kotlin/text/CharacterCodingException.kt new file mode 100644 index 00000000000..5f7076a8870 --- /dev/null +++ b/libraries/stdlib/src/kotlin/text/CharacterCodingException.kt @@ -0,0 +1,13 @@ +/* + * Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. + */ + +package kotlin.text + +/** + * The exception thrown when a character encoding or decoding error occurs. + */ +@SinceKotlin("1.3") +@ExperimentalStdlibApi +public expect open class CharacterCodingException() : Exception \ No newline at end of file