Skip to content

Commit 27427c3

Browse files
authored
Update reference resolution (#2726)
As in the design.md file we are informing that it is more performing using string concatenation seems appropiate to use them instead of the String.format method
1 parent e5c1052 commit 27427c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exercises/concept/log-levels/.meta/src/reference/java/LogLevels.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ public static String logLevel(String logLine) {
88
}
99

1010
public static String reformat(String logLine) {
11-
return String.format("%s (%s)", message(logLine), logLevel(logLine));
11+
return message(logLine) + " (" + logLevel(logLine) + ")";
1212
}
1313
}

0 commit comments

Comments
 (0)