Bug 31628 - Redundant import need a warning (matching package declaration)
Summary: Redundant import need a warning (matching package declaration)
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 2.1 RC1   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-12 02:51 EST by sunshouhua CLA
Modified: 2003-02-25 05:39 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 sunshouhua CLA 2003-02-12 02:51:15 EST
If I import a package/class that is not used in class,Eclipse will notify me:
the "import XXX is never used" in Task view.
But if I write a class like this:
package com.domain.project.test;
import com.domain.project.test.*;//$$$
class AAA{} 

This line includes "$$$" is not necessary too.
I think Eclipse should also notify me that "import com.domain.project.test is 
unnecessary".

Is it right?
Comment 1 Philipe Mulet CLA 2003-02-14 08:55:09 EST
We should indeed indicate it is unused.
Fixed in latest
Comment 2 Philipe Mulet CLA 2003-02-14 09:00:42 EST
Changed title to reflect issue.
Comment 3 David Audel CLA 2003-02-25 05:39:39 EST
Verified.