Project: JDT
Bug 191862 [clean up] use modifier "final" where possible removes annotations
Reported: 2007-06-10 15:57:06 | Status: verified fixed

The "Use modifier 'final' where possible" removes all annotations in fields. To reproduce this bug, just create a simple class with some annotation in a field and do the clean up task. Example: public static class OutjectionTestClass { @SuppressWarnings("unused") @Out private int x = 5; private int w = 3; public int getW() { return w; } }

Files changed in fix:
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/dom/ModifierRewrite.java org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/dom/VariableDeclarationRewrite.java