Fix toString.
This commit is contained in:
parent
e839f7b3b2
commit
77cfcff2ed
1 changed files with 2 additions and 3 deletions
|
|
@ -93,9 +93,8 @@ public class VmPool {
|
|||
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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue