Bug 150229 - new warning: unnecessarily implemented interface
Summary: new warning: unnecessarily implemented interface
Status: VERIFIED DUPLICATE of bug 77918
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: 3.4 M4   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-11 05:37 EDT by Markus Keller CLA
Modified: 2007-12-12 05:49 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 Markus Keller CLA 2006-07-11 05:37:07 EDT
When a type implements an interface that is already implemented by one of its supertypes, then the declaration in the subtype is superfluous. The compiler could flag this as unnecessarily implemented interface.

interface I { }
class A implements I { }
class B extends A implements I { } // "implements I" is unnecessary
Comment 1 Markus Keller CLA 2007-02-02 04:48:58 EST

*** This bug has been marked as a duplicate of bug 77918 ***
Comment 2 Frederic Fusier CLA 2007-12-12 05:49:20 EST
Verified for 3.4M4 using I20071211-0010.