Bug 4375

Summary: Move CU - import computation should be smart
Product: [Eclipse Project] JDT Reporter: Dirk Baeumer <dirk_baeumer>
Component: UIAssignee: Adam Kiezun <akiezun>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:
Bug Depends on: 4271    
Bug Blocks:    

Description Dirk Baeumer CLA 2001-10-11 10:18:54 EDT
- load JUnit into the workspace
- add package junit.dummy
- add class A in junit.dummy
- move A to util.
- you end up having the following code

package junit.util;
import junit.dummy.*;

public class A {

}

- move should be smarter when generating import statements. Only import types
  that are needed.
Comment 1 Adam Kiezun CLA 2001-10-18 10:32:03 EDT
waiting for 4271
Comment 2 Adam Kiezun CLA 2002-01-29 09:54:01 EST
fixed - trade off is of course performance.
only needed types are imported.
imports to types from the destination package are removed altogether.