mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-22 15:10:02 +00:00
#2641 - toString() - addCollection() firstElement change
This commit is contained in:
1 parent
183b601be8
commit
be2466003d
2 files changed
+32
-2
No files matched your search
@@ -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