Project: JDT
Bug 213995 [clean up] Clean up not adding final to inner class method parameters
Reported: 2007-12-28 16:35:44 | Status: resolved fixed

Build ID: 3.3.1.1 Steps To Reproduce: 1.Run clean up on sample code 2.Note that ActionEvent ev has no final keyword More information: // Sample code: // ************************************************** import java.awt.event.*; import junit.framework.TestCase; public class TestCleanup extends TestCase { public void testSetupButtonListeners() { final ActionListener cancelButtonListener = new ActionListener() { public void actionPerformed(ActionEvent ev) {} }; final ActionListener okButtonListener = new ActionListener() { public void actionPerformed(ActionEvent ev) {} }; final ActionListener searchButtonListener = new ActionListener() { public void actionPerformed(ActionEvent ev) {} }; final ActionListener tablePanelListener = new ActionListener() { public void actionPerformed(ActionEvent ev) {} }; } }

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/core extension/org/eclipse/jdt/internal/corext/fix/VariableDeclarationFix.java