@@ -58,7 +58,11 @@ public static FormatterStep create(String version, String style, Provisioner pro
58
58
}
59
59
60
60
public static FormatterStep create (String groupArtifact , String version , String style , Provisioner provisioner , boolean reflowLongStrings ) {
61
- return create (groupArtifact , version , style , provisioner , reflowLongStrings , false , DEFAULT_FORMAT_JAVADOC );
61
+ return create (groupArtifact , version , style , provisioner , reflowLongStrings , DEFAULT_REORDER_IMPORTS );
62
+ }
63
+
64
+ public static FormatterStep create (String groupArtifact , String version , String style , Provisioner provisioner , boolean reflowLongStrings , boolean reorderImports ) {
65
+ return create (groupArtifact , version , style , provisioner , reflowLongStrings , reorderImports , DEFAULT_FORMAT_JAVADOC );
62
66
}
63
67
64
68
/** Creates a step which formats everything - groupArtifact, code, import order, and unused imports - and optionally reflows long strings. */
@@ -127,7 +131,11 @@ static final class State implements Serializable {
127
131
}
128
132
129
133
State (String stepName , String version , String style , Provisioner provisioner , boolean reflowLongStrings ) throws Exception {
130
- this (stepName , MAVEN_COORDINATE , version , style , provisioner , reflowLongStrings , DEFAULT_REORDER_IMPORTS , DEFAULT_FORMAT_JAVADOC );
134
+ this (stepName , version , style , provisioner , reflowLongStrings , DEFAULT_REORDER_IMPORTS );
135
+ }
136
+
137
+ State (String stepName , String version , String style , Provisioner provisioner , boolean reflowLongStrings , boolean reorderImports ) throws Exception {
138
+ this (stepName , MAVEN_COORDINATE , version , style , provisioner , reflowLongStrings , reorderImports , DEFAULT_FORMAT_JAVADOC );
131
139
}
132
140
133
141
State (String stepName , String groupArtifact , String version , String style , Provisioner provisioner , boolean reflowLongStrings , boolean reorderImports , boolean formatJavadoc ) throws Exception {
0 commit comments