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 198672 - Moving a class inserts "import" not in order
Summary: Moving a class inserts "import" not in order
Status: RESOLVED DUPLICATE of bug 221630
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords: PLAN
Depends on:
Blocks:
 
Reported: 2011-05-17 12:05 UTC by arataj
Modified: 2015-07-30 09:12 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 arataj 2011-05-17 12:05:36 UTC
If a class is moved to another package, adding "import" to some files that use the class can be needed. It is added, though, before all other imports, instead of putting it in alphabetic order.

The relevant code is likely there to be reused, as the "add import" hint puts the import in order.
Comment 1 Ralph Ruijs 2015-07-30 09:12:18 UTC

*** This bug has been marked as a duplicate of bug 221630 ***