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.
Usecase : Conside the following case. If users code has the folloing. "import java.io.*;" Even if user applies "Fix import" should remove the above mentioned import and add optimized classes only. Like the following: "import java.io.IOException;" "import java.io.PrintWriter;" The same thing happend in the foilowing case too. "import java.io.IOException;" "import java.io.*;"
Ok, what does it do now? If it's just inefficient import statements then the priority is definitely not P2. Does the source compile? Can you keep working even with the issue? Anyway, passing to java.
There is no problem in compilation. If there is any import with wild char. Fix Import action does not add any individual classes. As a work around: User can remove such import line and run Fix Imports again. IDE should have take care of optimized imports automatically
Optimize and order imports are now optional actions during file save. Closing.