Migrate deprecations in core, compiler, idea, tests
Replacing deprecated Char.toInt() with Char.code and Number.toChar() with Number.toInt().toChar(), where Number is not Int. KT-23451
This commit is contained in:
@@ -47,7 +47,7 @@ class LogStream(name: String) : OutputStream() {
|
||||
val lineBuf = StringBuilder()
|
||||
|
||||
override fun write(byte: Int) {
|
||||
if (byte.toChar() == '\n') flush()
|
||||
if (byte == '\n'.code) flush()
|
||||
else lineBuf.append(byte.toChar())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user