Bug 207746 - Leverage new compiler option: org.eclipse.jdt.core.compiler.problem.unusedWarningToken
Summary: Leverage new compiler option: org.eclipse.jdt.core.compiler.problem.unusedWar...
Status: RESOLVED DUPLICATE of bug 207701
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-29 06:08 EDT by Philipe Mulet CLA
Modified: 2007-10-29 06:37 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipe Mulet CLA 2007-10-29 06:08:44 EDT
JDT/Core just released (for 3.4M3) a new compiler option to improve handling of @SuppressWarnings annotation.

(from JDT/Core buildnotes)
Added new compiler optional warning for diagnosing unnecessary @SuppressWarnings annotation. This is mostly helpful to get rid of @SupressWarnings(...) annotations which were necessary a while ago, but are no longer useful. Note that @SuppressWarnings("all") is still silencing the warning for unnecessary @SuppressWarnings, as it is the master switch to silence ALL warnings. Also added option: JavaCore.COMPILER_PB_UNUSED_WARNING_TOKEN and problem ID IProblem.UnusedWarningToken. 
* COMPILER / Reporting Unnecessary @SuppressWarnings
*    When enabled, the compiler will issue an error or a warning when encountering @SuppressWarnings annotation 
*    for which no corresponding warning got detected in the code. This diagnostic is provided to help developers to get
*    rid of transient @SuppressWarnings no longer needed. Note that @SuppressWarnings("all") is still 
*    silencing the warning for unnecessary @SuppressWarnings, as it is the master switch to silence ALL warnings.
*     - option id:         "org.eclipse.jdt.core.compiler.problem.unusedWarningToken"
*     - possible values:   { "error", "warning", "ignore" }
*     - default:           "warning"
Comment 1 Philipe Mulet CLA 2007-10-29 06:09:21 EDT
1. Need an entry in the preferences page
2. Maybe need a cleanup as well ?
Comment 2 Martin Aeschlimann CLA 2007-10-29 06:12:11 EDT

*** This bug has been marked as a duplicate of bug 127533 ***
Comment 3 Martin Aeschlimann CLA 2007-10-29 06:36:57 EDT
uups, wrong bug
Comment 4 Martin Aeschlimann CLA 2007-10-29 06:37:11 EDT

*** This bug has been marked as a duplicate of bug 207701 ***