Improve String operations

- Don't call #toString on strings.
- Don't use + in StringBuilder#append-s methods.

Change-Id: I4e0f99ea417aabb72ecaaab170c66eb434d3ad37
This commit is contained in:
Maxime Guerreiro
2018-04-27 13:31:26 +00:00
committed by David Pursehouse
parent 505fa92b0c
commit 34de18130e
6 changed files with 25 additions and 19 deletions

View File

@@ -298,7 +298,7 @@ public class MergeUtil {
public static String createConflictMessage(List<String> conflicts) {
StringBuilder sb = new StringBuilder("merge conflict(s)");
for (String c : conflicts) {
sb.append('\n' + c);
sb.append('\n').append(c);
}
return sb.toString();
}