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 - Don't fail Safely Delete because of unused imports
Summary: Don't fail Safely Delete because of unused imports
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Jan Becicka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-26 20:41 UTC by matthies
Modified: 2010-09-23 08:44 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.