J2K: Remove special conversion for String.format.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user