Summary: | @SuppressWarnings("deprecation") does not suppress deprecation warning on imports | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Willian Mitsuda <wmitsuda> |
Component: | Core | Assignee: | JDT-Core-Inbox <jdt-core-inbox> |
Status: | VERIFIED DUPLICATE | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 3.1.1 | ||
Target Milestone: | 3.2 M5 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Willian Mitsuda
2006-01-20 13:53:50 EST
*** This bug has been marked as a duplicate of 124522 *** Reopen to close as dup og bug 123522 and not 124522. *** This bug has been marked as a duplicate of 123522 *** This bug was marked as a DUPL of bug#123522, which was VERIFIED against I20060215-0010. However, this bug still happens on I20060215-0010, so I'm reopening it. Put back as duplicate as you need to put your @SuppressWarnings("deprecation") on class declaration and not on main method only. So, following test case does not produce any deprecation warning: package com.mycompany.myapp; import com.mycompany.DeprecatedClass; @SuppressWarnings("deprecation") public class MyClass { public static void main(String[] args) { DeprecatedClass c = new DeprecatedClass(); .... } } *** This bug has been marked as a duplicate of 123522 *** Ok, my fault... Sorry! |