Project: JDT
Bug 99681 [refactoring] Convert anonymous creates unnecessary fields for enum types
Reported: 2005-06-13 11:05:17 | Status: verified fixed

In RC2. Given import java.util.HashSet; public class Exposer { enum Color { RED, GREEN, BLUE; } /** * @param args */ public static void main(String[] args) { new HashSet<Color>() { public void addAllColors() { add(Color.RED); add(Color.GREEN); add(Color.BLUE); } }; } } Converting the HashSet to nested creates three unused fields, red, green, and blue.

Files changed in fix:
org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/ConvertAnonymousToNestedRefactoring.java