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 126717 - [Move] Refactoring not removing same package imports
Summary: [Move] Refactoring not removing same package imports
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Max Sauer
URL:
Keywords:
Depends on: 163309
Blocks: 152192
  Show dependency tree
 
Reported: 2008-02-05 13:57 UTC by dholmes
Modified: 2009-04-22 10:47 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dholmes 2008-02-05 13:57:56 UTC
When I refactored a class Foo into a different package (say from com.a.Foo to com.b.Foo), the existing classes in com.b
that used the Foo class have their import statements updated for the new package, rather than removed.  this ok for
compile, but if you use Checkstyle to prevent this situation  you receive errors.

Should this refactor remove the same package imports? The fix imports editor command does not create them in the first
place, so it would seem so to me.
Comment 1 Jiri Prox 2008-02-06 14:13:36 UTC
It's IMO no so serious -> P4
Comment 2 Max Sauer 2009-03-03 14:48:59 UTC
Fixed.
---
http://hg.netbeans.org/jet-main/rev/157ec5d0f8fd
Comment 3 Quality Engineering 2009-03-06 09:16:41 UTC
Integrated into 'main-golden', will be available in build *200903060201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/157ec5d0f8fd
User: Max Sauer <msauer@netbeans.org>
Log: #126717: [Move] Refactoring not removing same package imports