J2K: Remove special conversion for String.format.

This commit is contained in:
Ilya Gorbunov
2016-02-03 06:03:09 +03:00
parent c243a2bdd5
commit 805410bb19
4 changed files with 2 additions and 29 deletions
@@ -1,6 +1,5 @@
//method
public static void adjust(String name, int maxLen) {
String.format("%-" + maxLen + "s", name);
String.valueOf(1 + 1);
"a".split("\\s+" + "\\s+", 2)
kotlinApi.KotlinApiKt.extensionFunction(1 + 1)
@@ -1,5 +1,4 @@
fun adjust(name: String, maxLen: Int) {
("%-" + maxLen + "s").format(name)
(1 + 1).toString()
"a".split(("\\s+" + "\\s+").toRegex(), 2).toTypedArray()
(1 + 1).extensionFunction()
@@ -101,8 +101,8 @@ internal class A {
3.14.toString()
Object().toString()
"Je ne mange pas %d jours".format(Locale.FRENCH, 6)
"Operation completed with %s".format("success")
String.format(Locale.FRENCH, "Je ne mange pas %d jours", 6)
String.format("Operation completed with %s", "success")
val chars = charArrayOf('a', 'b', 'c')
String(chars)