Skip to content

Commit

Permalink
Fix toString.
Browse files Browse the repository at this point in the history
  • Loading branch information
mnlipp committed Nov 29, 2024
1 parent e839f7b commit 77cfcff
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,8 @@ public String toString() {
if (vms.size() <= 3) {
builder.append(vms);
} else {
builder.append('[');
vms.stream().limit(3).map(s -> s + ",").forEach(builder::append);
builder.append("...]");
builder.append('[').append(vms.stream().limit(3).map(s -> s + ",")
.collect(Collectors.joining())).append("...]");
}
builder.append(']');
return builder.toString();
Expand Down

0 comments on commit 77cfcff

Please sign in to comment.