public final class ImportOrderer
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
reorderImports(java.lang.String text)
Deprecated.
Use
#reorderImports(String, Style) instead |
static java.lang.String |
reorderImports(java.lang.String text,
com.palantir.javaformat.java.JavaFormatterOptions.Style style)
Reorder the inputs in
text, a complete Java program. |
public static java.lang.String reorderImports(java.lang.String text,
com.palantir.javaformat.java.JavaFormatterOptions.Style style)
throws com.palantir.javaformat.java.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.@Deprecated
public static java.lang.String reorderImports(java.lang.String text)
throws com.palantir.javaformat.java.FormatterException
#reorderImports(String, Style) insteadtext, a complete Java program, in Google style. 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.