Skip to content
Prev Previous commit
Next Next commit
Replace call to deprecated method ImportOrderer#reorderImports(String)
Replace call to deprecated method ImportOrderer#reorderImports(String) by call to method ImportOrderer#reorderImports(String, Style)
  • Loading branch information
duke1995 committed Mar 11, 2023
commit c1ccd2bc3bfb09677a4df64a97e6ede59be7af5d
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ private String fixImports(final String unformattedContent) throws FormatterExcep
formattedContent = RemoveUnusedImports.removeUnusedImports(formattedContent);
}
if (!options.isSkipSortingImports()) {
formattedContent = ImportOrderer.reorderImports(formattedContent);
formattedContent = ImportOrderer.reorderImports(formattedContent, options.javaFormatterOptions().style());
}
return formattedContent;
}
Expand Down