Project: JDT
Bug 205801 [clean up] enhanced for loop local name
Reported: 2007-10-09 07:12:12 | Status: resolved fixed

Build ID: I20070921-0919 The default name for the local created by enhanced for loop cleanup is "element". Could you detect when the array/collection name ends with an 's' and use the name without the 's' for the local?

Files changed in fix:
org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/CleanUpStressTest.java org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/CleanUpTest.java org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/ConvertForLoopQuickFixTest.java org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/fix/ConvertForLoopOperation.java