This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 153966

Summary: Don't fail Safely Delete because of unused imports
Product: java Reporter: matthies <matthies>
Component: RefactoringAssignee: Jan Becicka <jbecicka>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: ENHANCEMENT Exception Reporter:

Description matthies 2008-11-26 20:41:56 UTC
Currently a Safely Delete fails when the class to be deleted is referenced by an import even if the import is unused. 
It would be much more useful if Safely Delete would delete such unused imports along with the deletion of the class.

Unused imports of the class to be deleted quite naturally arise from refactoring code that used the class (and now 
doesn't use it any more) prior to the class' deletion. It would be beneficial for Safely Delete to accomodate this 
common case.