Skip to content

Commit

Permalink
Use StringBuilder instead of string concatenation
Browse files Browse the repository at this point in the history
  • Loading branch information
wendigo committed Mar 28, 2023
1 parent c9bc3bf commit 1b7143c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ public String render(int[] columnsWidth)
value = lines.get(col).get(row);
}

builder.append("|").append(" " + pad(value, columnsWidth[col], alignment) + " ");
builder.append("|").append(" ").append(pad(value, columnsWidth[col], alignment)).append(" ");
if (col == columnsWidth.length - 1) {
builder.append("|");
}
Expand Down

0 comments on commit 1b7143c

Please sign in to comment.