Community
Participate
Working Groups
Build Identifier: 20110615-0604 The template should use Generics. A possible template specification would be: for (${iteratorType:newType(java.util.Iterator)}<${type:elemType(collection)}> ${iterator} = ${collection}.iterator(); ${iterator}.hasNext(); ) { ${type:elemType(collection)} ${name:newName(type)} = ${iterator}.next(); ${cursor} } This would produce a for loop with an iterator using the type and no cast in the block. Reproducible: Always Steps to Reproduce: 1. type for 2. press CTRL-Space 3. Use the template
*** This bug has been marked as a duplicate of bug 357408 ***
*** This bug has been marked as a duplicate of bug 102747 ***