Skip to content

Commit 7687e62

Browse files
committed
Make configuration API public
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=117865820
1 parent 2c09b93 commit 7687e62

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public Formatter() {
8989
this(new JavaFormatterOptions(JavadocFormatter.NONE, Style.GOOGLE, SortImports.NO));
9090
}
9191

92-
Formatter(JavaFormatterOptions options) {
92+
public Formatter(JavaFormatterOptions options) {
9393
this.options = options;
9494
}
9595

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ public class JavaFormatterOptions {
4141

4242
static final int DEFAULT_MAX_LINE_LENGTH = 100;
4343

44-
enum SortImports {
44+
public enum SortImports {
4545
NO,
4646
ONLY,
4747
ALSO
4848
}
4949

50-
enum Style {
50+
public enum Style {
5151

5252
/** The default Google Java Style configuration. */
5353
GOOGLE(1),
@@ -66,7 +66,7 @@ int indentationMultiplier() {
6666
}
6767
}
6868

69-
enum JavadocFormatter {
69+
public enum JavadocFormatter {
7070
NONE {
7171
@Override
7272
public String format(JavaFormatterOptions options, String text, int column0) {
@@ -87,7 +87,8 @@ public String format(JavaFormatterOptions options, String text, int column0) {
8787
private final Style style;
8888
private final SortImports sortImports;
8989

90-
JavaFormatterOptions(JavadocFormatter javadocFormatter, Style style, SortImports sortImports) {
90+
public JavaFormatterOptions(
91+
JavadocFormatter javadocFormatter, Style style, SortImports sortImports) {
9192
this.javadocFormatter = javadocFormatter;
9293
this.style = style;
9394
this.sortImports = sortImports;

0 commit comments

Comments
 (0)