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
@@ -60,10 +60,7 @@ class A {
s.toString();
s.toCharArray();
char[] chars = new char[10];
s.getChars(1, 11, chars, 0);
}
}
void specialMethods() throws Exception {
String s = "test string";
@@ -86,6 +83,9 @@ class A {
s.getBytes();
s.getBytes(Charset.forName("utf-8"));
s.getBytes("utf-8");
char[] chars = new char[10];
s.getChars(1, 11, chars, 0);
}
void staticMethods() {