Skip to content

Commit

Permalink
use String.valueOf instead of appending to empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
iTwins authored Aug 29, 2023
1 parent cb292ae commit df479f1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public static void log(@Nonnull String test, @Nonnull String msg, @Nonnull Objec
while ((i = msg.indexOf('{', i)) != -1 && msg.charAt(i + 1) == '}') {
// Substring up to the opening brace `{`, add the variable for this and add the rest of the message
msg = msg.substring(0, i) + vars[idx] + msg.substring(i + 2);
i += ("" + vars[idx++]).length();
i += String.valueOf(vars[idx++]).length();
}

return msg;
Expand Down

0 comments on commit df479f1

Please sign in to comment.