Update of /var/cvs/src/org/mmbase/util/functions
In directory james.mmbase.org:/tmp/cvs-serv30617
Modified Files:
NodeFunction.java
Log Message:
foreach
See also: http://cvs.mmbase.org/viewcvs/src/org/mmbase/util/functions
Index: NodeFunction.java
===================================================================
RCS file: /var/cvs/src/org/mmbase/util/functions/NodeFunction.java,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -b -r1.31 -r1.32
--- NodeFunction.java 25 Nov 2007 18:25:49 -0000 1.31
+++ NodeFunction.java 11 Jul 2008 14:49:36 -0000 1.32
@@ -23,7 +23,7 @@
* the Parameter array of the constructor.
*
* @author Michiel Meeuwissen
- * @version $Id: NodeFunction.java,v 1.31 2007/11/25 18:25:49 nklasens Exp $
+ * @version $Id: NodeFunction.java,v 1.32 2008/07/11 14:49:36 michiel Exp $
* @see org.mmbase.module.core.MMObjectBuilder#executeFunction
* @see org.mmbase.bridge.Node#getFunctionValue
* @see org.mmbase.util.functions.BeanFunction
@@ -144,9 +144,7 @@
// This happens when calling gui() in transaction.
// Perhaps we need something like a public new
BasicNode(MMobjectNode, Cloud). Abusing VirtualNode for similar purpose now.
org.mmbase.module.core.VirtualNode virtual = new
org.mmbase.module.core.VirtualNode(coreNode.getBuilder());
- Iterator<Map.Entry<String, Object>> i =
coreNode.getValues().entrySet().iterator();
- while (i.hasNext()) {
- Map.Entry<String, Object> entry = i.next();
+ for (Map.Entry<String, Object> entry :
coreNode.getValues().entrySet()) {
virtual.storeValue(entry.getKey(),
entry.getValue());
}
node = new
org.mmbase.bridge.implementation.VirtualNode(virtual, cloud);
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs