mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#2641 - toString() - addCollection() firstElement change
This commit is contained in:
@@ -125,10 +125,12 @@ public final class ToStringBuilder {
|
||||
sb.append("[]");
|
||||
return;
|
||||
}
|
||||
int collectionPos = 0;
|
||||
boolean firstElement = true;
|
||||
sb.append("[");
|
||||
for (Object o : c) {
|
||||
if (collectionPos++ > 0) {
|
||||
if (firstElement) {
|
||||
firstElement = false;
|
||||
} else {
|
||||
sb.append(", ");
|
||||
}
|
||||
value(o);
|
||||
|
||||
Reference in New Issue
Block a user