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 26946

Summary: [IMT] Import management tool changes formatting
Product: java Reporter: tkellerer <tkellerer>
Component: UnsupportedAssignee: issues@java <issues>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P3    
Version: 3.x   
Hardware: PC   
OS: Windows ME/2000   
Issue Type: DEFECT Exception Reporter:

Description tkellerer 2002-09-02 09:22:29 UTC
I have a class formatted like this:

public class MyClass
    extends MyAncestor
    implements Interface1, Interface2

Now, when I invoke the Import Management Tool to
clean up my imports (mainly remove unused and
"optimize" named imports vs. "wilcard" imports)
the formatting will be changed so that everything
will be on one line even if there are no changes
to the class itself or the interfaces.

Steps to reproduce:

create several imports (which will be
corrected/optimized by the Import Management Tool)
Format the class definition line with more than
one line
Execute the Import Management Tool
Comment 1 Tomas Hurka 2002-09-24 17:36:37 UTC
Fixed in trunk.
Comment 2 Jan Becicka 2002-10-14 14:52:48 UTC
Verified in 200210090100