mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-18 14:58:47 +00:00
No effective change - code cleanup - while to foreach
This commit is contained in:
1 parent
3451280679
commit
ece7466117
1 file changed
+2
-3
@@ -141,9 +141,8 @@ public final class BeanSetHelp<T> implements BeanCollectionHelp<T> {
|
||||
|
||||
if (!set.isEmpty() || ctx.isIncludeEmpty()) {
|
||||
ctx.writeStartArray(name);
|
||||
Iterator<?> it = set.iterator();
|
||||
while (it.hasNext()) {
|
||||
targetDescriptor.jsonWrite(ctx, (EntityBean) it.next());
|
||||
for (Object bean : set) {
|
||||
targetDescriptor.jsonWrite(ctx, (EntityBean) bean);
|
||||
}
|
||||
ctx.writeEndArray();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user