Community
Participate
Working Groups
I20070821-0800 A 'for' template to iterate over parameterized collection should be added: for (Iterator<${type:argType(collection, 0)}> ${iter:newName(java.util.Iterator)} = ${collection:var(java.util.Collection)}.iterator(); ${iter}.hasNext(); ) { ${type} ${name:newName(type)} = ${iter}.next(); ${cursor} } The advances over the existing 'for' template is that it - Does not use Iterator as raw type - Does not make cast to element type We can either add this to the java context or add a new 'Java 1.5' context which only shows proposals if project is a 1.5+ project.
*** This bug has been marked as a duplicate of bug 95787 ***
*** This bug has been marked as a duplicate of bug 102747 ***