Organize Imports

By using Organize Imports function, you can have a better organization over your import statments. It enables you to:

  • Make sure that your Java class has all the necessary import statements
  • Expand statements like "import abc.*;" to "import abc.C1; import abc.C2; ..."
  • Sort your import statements.
  • Note: There may be duplicate packages imported when duplicate name is used. In this case, user is required to remove the unused one for project consistency. In addition, if there are any unidentified methods are recognized, warning messages will show.


     

    After applying Organize Imports