[seam-commits] Seam SVN: r7938 - trunk/src/main/org/jboss/seam/contexts and 1 other directory.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Mon Apr 14 08:26:17 EDT 2008
Author: pete.muir at jboss.org
Date: 2008-04-14 08:26:17 -0400 (Mon, 14 Apr 2008)
New Revision: 7938
Modified:
branches/Seam_2_0/src/main/org/jboss/seam/contexts/EntityBeanList.java
trunk/src/main/org/jboss/seam/contexts/EntityBeanList.java
Log:
JBSEAM-2892
Modified: branches/Seam_2_0/src/main/org/jboss/seam/contexts/EntityBeanList.java
===================================================================
--- branches/Seam_2_0/src/main/org/jboss/seam/contexts/EntityBeanList.java 2008-04-14 12:16:03 UTC (rev 7937)
+++ branches/Seam_2_0/src/main/org/jboss/seam/contexts/EntityBeanList.java 2008-04-14 12:26:17 UTC (rev 7938)
@@ -1,6 +1,7 @@
package org.jboss.seam.contexts;
import java.util.ArrayList;
+import java.util.Iterator;
import java.util.List;
/**
@@ -68,9 +69,10 @@
List<PassivatedEntity> newPassivatedList = new ArrayList<PassivatedEntity>(list.size());
boolean found = false;
- for (int i=0; i<list.size(); i++) {
+ Iterator<Object> it = list.iterator();
+ for (int i=0; it.hasNext(); i++) {
PassivatedEntity passivatedEntity = null;
- Object value = list.get(i);
+ Object value = it.next();
if (value != null) {
passivatedEntity = PassivatedEntity.passivateEntity(value);
Modified: trunk/src/main/org/jboss/seam/contexts/EntityBeanList.java
===================================================================
--- trunk/src/main/org/jboss/seam/contexts/EntityBeanList.java 2008-04-14 12:16:03 UTC (rev 7937)
+++ trunk/src/main/org/jboss/seam/contexts/EntityBeanList.java 2008-04-14 12:26:17 UTC (rev 7938)
@@ -1,6 +1,7 @@
package org.jboss.seam.contexts;
import java.util.ArrayList;
+import java.util.Iterator;
import java.util.List;
/**
@@ -68,9 +69,10 @@
List<PassivatedEntity> newPassivatedList = new ArrayList<PassivatedEntity>(list.size());
boolean found = false;
- for (int i=0; i<list.size(); i++) {
+ Iterator<Object> it = list.iterator();
+ for (int i=0; it.hasNext(); i++) {
PassivatedEntity passivatedEntity = null;
- Object value = list.get(i);
+ Object value = it.next();
if (value != null) {
passivatedEntity = PassivatedEntity.passivateEntity(value);
More information about the seam-commits
mailing list