Bug 32907 - "Organize imports" doesn't always remove unused import declarations [code manipulation]
Summary: "Organize imports" doesn't always remove unused import declarations [code man...
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.1   Edit
Hardware: All All
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-25 05:16 EST by Andre Weinand CLA
Modified: 2003-03-31 11:02 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 Andre Weinand CLA 2003-02-25 05:16:40 EST
RC1:
- On "Org Imports" pref page set "Number of imports need for .*" to 1
- create project with two packages "a" and "b"
- create class "A" in "a", ang class "X" both in "a" and "b"
- create new class C in another package "c" with these imports
     import a.A;
     import b.*;
- create a method C.foo:
      foo() {
            X x;
            A a;
      }

- perform "Organize Imports"

Observe: you get these imports:
     import a.*;
     import b.*;
     import b.X;
Comment 1 Dirk Baeumer CLA 2003-02-26 10:58:40 EST
Not critical for 2.1
Comment 2 Martin Aeschlimann CLA 2003-03-31 11:02:03 EST
was fixed for 2.1