Deprecate String.concat with error severity.

Fix concat j2k conversion.
Add expected deprecation errors for Java String constructors that must be converted to special Kotlin String methods.
This commit is contained in:
Ilya Gorbunov
2016-01-20 15:50:47 +03:00
parent 2257fa36ec
commit 31ec7bcbea
5 changed files with 10 additions and 4 deletions
@@ -32,7 +32,6 @@ class A {
s.codePointCount(0, s.length());
s.offsetByCodePoints(0, 4);
s.compareTo("test 2");
s.concat(" another");
s.contains("seq");
s.contentEquals(new StringBuilder(s));
s.contentEquals(new StringBuffer(s));
@@ -79,6 +78,7 @@ class A {
int limit = 5;
useSplit(s.split("\\s+", limit));
s.trim();
s.concat(" another");
s.getBytes();
s.getBytes(Charset.forName("utf-8"));