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.
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.