Bug 31628

Summary: Redundant import need a warning (matching package declaration)
Product: [Eclipse Project] JDT Reporter: sunshouhua <idonotsee>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.1   
Target Milestone: 2.1 RC1   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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.