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.
In my source I like to group my imports in packages like this: import java.util.Enumeration; import java.rmi.RemoteException; import javax.servlet.http.*; import org.apache.log4j.Category; import org.apache.struts.action.*; But if I let the import management tool remove unused imports etc. (do it's thing) it removes my order/grouping of imports and it will look something like this: import org.apache.log4j.Category; import java.util.Enumeration; import org.apache.struts.action.*; import java.rmi.RemoteException; import javax.servlet.http.*; It is not so serious if there are 2 or 3 imports but you lose quick insight over which packages you are importing if the number goes above 10 or so imports. Suggestion: leave alone current ordering of import statements or better, give the user a sorting option (including whitelines between package groups possiblity)
It belongs to Java module I think.
In NB 3.4 there is enhancement which sorts the imports statement. I guess this will solve your problem. See issue #19167 *** This issue has been marked as a duplicate of 19167 ***
Resolved for 3.4.x or earlier, no new info since then -> closing.