| Summary: | [Xtend] organize imports: unneeded import for FQN added | ||
|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Moritz Eysholdt <moritz.eysholdt> |
| Component: | Xtext | Assignee: | Project Inbox <tmf.xtext-inbox> |
| Status: | CLOSED DUPLICATE | QA Contact: | |
| Severity: | major | ||
| Priority: | P3 | Flags: | moritz.eysholdt:
juno+
|
| Version: | unspecified | ||
| Target Milestone: | M4 | ||
| Hardware: | Macintosh | ||
| OS: | Mac OS X | ||
| Whiteboard: | |||
Knut already reported this one in bug 362267 *** This bug has been marked as a duplicate of bug 362267 *** Closing all bugs that were set to RESOLVED before Neon.0 Closing all bugs that were set to RESOLVED before Neon.0 |
Steps to reproduce When running "organize imports" on file --- class bar implements java.util.List<Object> { } --- the import "import java.util.List" is added. This import is not actually needed, since the reference to List within the extends-clause remains in its FQN-form. Consequently, the import is now flagged with a warning marker: "The import 'java.util.List' is never used.". This is somewhat inconvenient, since I like to use "organize imports" to wipe away my warnings caused by unused imports ;) JDT does not add an import for the same scenario in Java.