Skip to content

Commit

Permalink
Cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
Goooler committed Nov 21, 2023
1 parent 73a0de5 commit 6d4a679
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,7 @@ public static FormatterStep create(Provisioner provisioner) {
}

public static FormatterStep create(String version, Provisioner provisioner) {
return create(version, provisioner, Collections.emptyMap());
}

public static FormatterStep create(String version, Provisioner provisioner,
Map<String, Object> editorConfigOverride) {
return create(version, provisioner, null, editorConfigOverride, Collections.emptyList());
return create(version, provisioner, null, Collections.emptyMap(), Collections.emptyList());
}

public static FormatterStep create(String version,
Expand All @@ -73,7 +68,7 @@ public static String defaultVersion() {
return DEFAULT_VERSION;
}

static final class State implements Serializable {
private static final class State implements Serializable {
private static final long serialVersionUID = 1L;
/** The jar that contains the formatter. */
private final JarState jarState;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
import com.diffplug.spotless.maven.FormatterStepFactory;

public class Ktlint implements FormatterStepFactory {

@Parameter
private String version;
@Parameter
Expand All @@ -53,7 +52,11 @@ public FormatterStep newFormatterStep(final FormatterStepConfig stepConfig) {
if (customRuleSets == null) {
customRuleSets = Collections.emptyList();
}

return KtLintStep.create(ktlintVersion, stepConfig.getProvisioner(), configPath, editorConfigOverride, customRuleSets);
return KtLintStep.create(
ktlintVersion,
stepConfig.getProvisioner(),
configPath,
editorConfigOverride,
customRuleSets);
}
}

0 comments on commit 6d4a679

Please sign in to comment.