Bug 86466 - Quick fix to add @override annotation to methods [quick fix]
Summary: Quick fix to add @override annotation to methods [quick fix]
Status: RESOLVED DUPLICATE of bug 86234
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M6   Edit
Assignee: Martin Aeschlimann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-24 09:15 EST by Dirk Baeumer CLA
Modified: 2005-03-14 13:52 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Baeumer CLA 2005-02-24 09:15:58 EST
There is a new compiler warning 

* COMPILER / Reporting Missing @Override Annotation
*    When enabled, the compiler will issue an error or a warning whenever
encountering a method
*    declaration which overrides a superclass method but has no @Override
annotation.
*     - option id:       
"org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation"
*     - possible values:   { "error", "warning", "ignore" }
*     - default:           "warning"                               

We should provide a quick fix for this.

Martin, I added the compiler UI and tried to implement a quick fix for it but
the ModifierRewrite can't deal with arbitrary annotations so I thought I let it
up to you to decide what to do here.
Comment 1 Martin Aeschlimann CLA 2005-03-14 13:52:33 EST

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