Class IdeaImportOrganizer
java.lang.Object
com.google.errorprone.apply.IdeaImportOrganizer
- All Implemented Interfaces:
ImportOrganizer
Organizes imports based on the default format provided by IntelliJ IDEA.
This groups the imports into three groups, each delimited by a newline:
- Non-static, non-
java.*
, non-javax.*
imports. javax.*
andjava.*
imports, withjavax.*
imports ordered first.- Static imports.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.google.errorprone.apply.ImportOrganizer
ImportOrganizer.Import, ImportOrganizer.OrganizedImports
-
Field Summary
Fields inherited from interface com.google.errorprone.apply.ImportOrganizer
ANDROID_STATIC_FIRST_ORGANIZER, ANDROID_STATIC_LAST_ORGANIZER, IDEA_ORGANIZER, STATIC_FIRST_ORGANIZER, STATIC_LAST_ORGANIZER
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorganizeImports
(List<ImportOrganizer.Import> imports) Organize the imports supplied, e.g.
-
Constructor Details
-
IdeaImportOrganizer
public IdeaImportOrganizer()
-
-
Method Details
-
organizeImports
Description copied from interface:ImportOrganizer
Organize the imports supplied, e.g. insert blank lines between various groups.- Specified by:
organizeImports
in interfaceImportOrganizer
- Parameters:
imports
- the imports to organize, the order is undefined.- Returns:
- the list of organized imports.
-