Introduce String.toCharArray() instead of String.getChars()

Make special method conversion for java.lang.String.getChars() in J2K
This commit is contained in:
Ilya Gorbunov
2015-11-18 18:40:35 +03:00
parent bf3a77b736
commit 775755dfac
5 changed files with 38 additions and 7 deletions
@@ -61,9 +61,6 @@ internal class A {
s.toString()
s.toCharArray()
val chars = CharArray(10)
s.getChars(1, 11, chars, 0)
}
@Throws(Exception::class)
@@ -88,6 +85,9 @@ internal class A {
s.toByteArray()
s.toByteArray(Charset.forName("utf-8"))
s.toByteArray("utf-8")
val chars = CharArray(10)
s.toCharArray(chars, 0, 1, 11)
}
fun staticMethods() {