Project: JDT
Bug 105668 [quick fix] place @SuppressWarnings on variables
Reported: 2005-08-01 09:57:58 | Status: verified fixed

3.1 add an option to place the @SuppressWarning annotation in the smallest scope you can. Currently, it never adds it to local variables or parameters but places them on the method which is potentially dangerous because it hides all warnings in the method

Files changed in fix:
org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/LocalCorrectionsQuickFixTest.java org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/ModifierCorrectionsQuickFixTest.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/SuppressWarningsSubProcessor.java