public class ImportOrderer extends Object
Modifier and Type | Method and Description |
---|---|
static String |
reorderImports(String text)
Reorder the inputs in
text , a complete Java program. |
public static String reorderImports(String text) throws FormatterException
text
, a complete Java program. On success, another complete Java
program is returned, which is the same as the original except the imports are in order.FormatterException
- if the input could not be parsed.Copyright © 2015–2017 Google Inc.. All rights reserved.