Deprecate extension property String.reader in favor of existing extension method reader() in kotlin.io package.
This commit is contained in:
@@ -454,6 +454,7 @@ public fun String.toPattern(flags: Int = 0): java.util.regex.Pattern {
|
|||||||
/**
|
/**
|
||||||
* Creates a new [StringReader] for reading the contents of this string.
|
* Creates a new [StringReader] for reading the contents of this string.
|
||||||
*/
|
*/
|
||||||
|
@Deprecated("Use reader() method instead in kotlin.io package", ReplaceWith("this.reader()", "kotlin.io.reader"))
|
||||||
public val String.reader: StringReader
|
public val String.reader: StringReader
|
||||||
get() = StringReader(this)
|
get() = StringReader(this)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user