J2K: Avoid to convert to deprecated String methods, namely toByteArray.

This commit is contained in:
Ilya Gorbunov
2015-12-21 07:43:59 +03:00
parent ac15807ba4
commit ddcafdd9b3
2 changed files with 11 additions and 3 deletions
@@ -84,7 +84,7 @@ internal class A {
s.toByteArray()
s.toByteArray(Charset.forName("utf-8"))
s.toByteArray("utf-8")
s.toByteArray(charset("utf-8"))
val chars = CharArray(10)
s.toCharArray(chars, 0, 1, 11)