Author: aadamchik
Date: Sat Nov 10 21:25:12 2012
New Revision: 1407889
URL: http://svn.apache.org/viewvc?rev=1407889&view=rev
Log:
trivial cleanup
Modified:
cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/util/RelationshipFault.java
Modified:
cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/util/RelationshipFault.java
URL:
http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/util/RelationshipFault.java?rev=1407889&r1=1407888&r2=1407889&view=diff
==============================================================================
---
cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/util/RelationshipFault.java
(original)
+++
cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/util/RelationshipFault.java
Sat Nov 10 21:25:12 2012
@@ -20,7 +20,6 @@
package org.apache.cayenne.util;
import java.util.ArrayList;
-import java.util.Iterator;
import java.util.List;
import org.apache.cayenne.PersistenceState;
@@ -129,9 +128,8 @@ public abstract class RelationshipFault
PropertyDescriptor property = resolver.getClassDescriptor(
reverse.getSourceEntity().getName()).getProperty(reverse.getName());
- Iterator it = resolved.iterator();
- while (it.hasNext()) {
- property.writePropertyDirectly(it.next(), null,
relationshipOwner);
+ for(Object o : resolved) {
+ property.writePropertyDirectly(o, null, relationshipOwner);
}
}
}