Deprecate extension property String.reader in favor of existing extension method reader() in kotlin.io package.

This commit is contained in:
Ilya Gorbunov
2015-09-24 22:34:44 +03:00
parent 379c39a2ef
commit 1598660870
@@ -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.
*/
@Deprecated("Use reader() method instead in kotlin.io package", ReplaceWith("this.reader()", "kotlin.io.reader"))
public val String.reader: StringReader
get() = StringReader(this)