Project: JDT
Bug 159337 [clean up] convert iterable loop ignores single non block body statement
Reported: 2006-09-29 14:46:49 | Status: verified fixed

3.2 public class Cleanup<K> extends ArrayList<K>{ void foo(){ for (Iterator<K> i = iterator(); i.hasNext(); ) System.out.println(i.next()); } } this does not compile after cleanup (convert to enhanced for loop)

Files changed in fix:
org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/ConvertIterableLoopQuickFixTest.java org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/fix/ConvertIterableLoopOperation.java