Skip to content

Commit 6d4a679

Browse files
committed
Cleanups
1 parent 73a0de5 commit 6d4a679

File tree

2 files changed

+8
-10
lines changed
  • lib/src/main/java/com/diffplug/spotless/kotlin
  • plugin-maven/src/main/java/com/diffplug/spotless/maven/kotlin

2 files changed

+8
-10
lines changed

lib/src/main/java/com/diffplug/spotless/kotlin/KtLintStep.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,7 @@ public static FormatterStep create(Provisioner provisioner) {
4949
}
5050

5151
public static FormatterStep create(String version, Provisioner provisioner) {
52-
return create(version, provisioner, Collections.emptyMap());
53-
}
54-
55-
public static FormatterStep create(String version, Provisioner provisioner,
56-
Map<String, Object> editorConfigOverride) {
57-
return create(version, provisioner, null, editorConfigOverride, Collections.emptyList());
52+
return create(version, provisioner, null, Collections.emptyMap(), Collections.emptyList());
5853
}
5954

6055
public static FormatterStep create(String version,
@@ -73,7 +68,7 @@ public static String defaultVersion() {
7368
return DEFAULT_VERSION;
7469
}
7570

76-
static final class State implements Serializable {
71+
private static final class State implements Serializable {
7772
private static final long serialVersionUID = 1L;
7873
/** The jar that contains the formatter. */
7974
private final JarState jarState;

plugin-maven/src/main/java/com/diffplug/spotless/maven/kotlin/Ktlint.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
import com.diffplug.spotless.maven.FormatterStepFactory;
3131

3232
public class Ktlint implements FormatterStepFactory {
33-
3433
@Parameter
3534
private String version;
3635
@Parameter
@@ -53,7 +52,11 @@ public FormatterStep newFormatterStep(final FormatterStepConfig stepConfig) {
5352
if (customRuleSets == null) {
5453
customRuleSets = Collections.emptyList();
5554
}
56-
57-
return KtLintStep.create(ktlintVersion, stepConfig.getProvisioner(), configPath, editorConfigOverride, customRuleSets);
55+
return KtLintStep.create(
56+
ktlintVersion,
57+
stepConfig.getProvisioner(),
58+
configPath,
59+
editorConfigOverride,
60+
customRuleSets);
5861
}
5962
}

0 commit comments

Comments
 (0)