Skip to content

Commit cf0597f

Browse files
nick-someonecushon
authored andcommitted
Make import fixing APIs public
MOE_MIGRATED_REVID=133747543
1 parent 33988ac commit cf0597f

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

core/src/main/java/com/google/googlejavaformat/java/ImportOrderer.java

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,15 @@
2424
import com.google.googlejavaformat.java.JavaInput.Tok;
2525
import org.eclipse.jdt.core.compiler.InvalidInputException;
2626

27-
/**
28-
* Orders imports in Java source code.
29-
*/
30-
class ImportOrderer {
27+
/** Orders imports in Java source code. */
28+
public class ImportOrderer {
3129
/**
32-
* Reorder the inputs in {@code input}, a complete Java program. On success, another complete
33-
* Java program is returned, which is the same as the original except the imports are in order.
30+
* Reorder the inputs in {@code input}, a complete Java program. On success, another complete Java
31+
* program is returned, which is the same as the original except the imports are in order.
3432
*
3533
* @throws FormatterException if the input could not be parsed.
3634
*/
37-
static String reorderImports(String text) throws FormatterException {
35+
public static String reorderImports(String text) throws FormatterException {
3836
ImmutableList<Tok> toks;
3937
try {
4038
toks = JavaInput.buildToks(text, CLASS_START);

0 commit comments

Comments
 (0)