Community
Participate
Working Groups
Build Identifier: M20090917-0800 The QuickFix offers to add a @SuppressWarnings to the enclosing method. It should also offer to apply the annotation to the affected declaration when applicable. According to "Effective Java, 2nd Edition", pg 117 (Jochua Bloch): "Always use the SuppressWarnings annotation on the smallest scope possible." Reproducible: Always Steps to Reproduce: 1. Add a declaration: List<String> myList = new ArrayList(); 2. Click ctrl-1 on ArrayList 3. Note that the only "Add @SuppressWarnings..." applies to the enclosing method
Created attachment 156845 [details] Proposed fix
Move to JDT/UI. Existing tests might need an update.
*** This bug has been marked as a duplicate of bug 105668 ***