File tree Expand file tree Collapse file tree 5 files changed +27
-6
lines changed
lib-extra/src/main/java/com/diffplug/spotless/extra
lib/src/main/java/com/diffplug/spotless Expand file tree Collapse file tree 5 files changed +27
-6
lines changed Original file line number Diff line number Diff line change 33
33
import com .diffplug .spotless .FormatterStep ;
34
34
import com .diffplug .spotless .JarState ;
35
35
import com .diffplug .spotless .Provisioner ;
36
+ import com .diffplug .spotless .RoundedStep ;
36
37
import com .diffplug .spotless .SerializedFunction ;
37
38
38
39
/**
@@ -126,7 +127,7 @@ public void setPreferences(Iterable<File> settingsFiles) {
126
127
this .settingsFiles = settingsFiles ;
127
128
}
128
129
129
- static class EclipseStep implements Serializable {
130
+ static class EclipseStep implements RoundedStep {
130
131
private static final long serialVersionUID = 1 ;
131
132
private final String semanticVersion ;
132
133
private final String formatterStepExt ;
Original file line number Diff line number Diff line change 34
34
import com .diffplug .spotless .FormatterStep ;
35
35
import com .diffplug .spotless .JarState ;
36
36
import com .diffplug .spotless .Provisioner ;
37
+ import com .diffplug .spotless .RoundedStep ;
37
38
import com .diffplug .spotless .SerializedFunction ;
38
39
39
40
import dev .equo .solstice .NestedJars ;
@@ -149,7 +150,7 @@ private P2Model createModelWithMirrors() {
149
150
return model ;
150
151
}
151
152
152
- static class EquoStep implements Serializable {
153
+ static class EquoStep implements RoundedStep {
153
154
private static final long serialVersionUID = 1 ;
154
155
private final String semanticVersion ;
155
156
private final FileSignature .Promised settingsPromise ;
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright 2024 DiffPlug
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ package com .diffplug .spotless ;
17
+
18
+ import java .io .Serializable ;
19
+
20
+ public interface RoundedStep extends Serializable {}
Original file line number Diff line number Diff line change 15
15
*/
16
16
package com .diffplug .spotless .generic ;
17
17
18
- import java .io .Serializable ;
19
-
20
18
import com .diffplug .spotless .FormatterFunc ;
21
19
import com .diffplug .spotless .FormatterStep ;
20
+ import com .diffplug .spotless .RoundedStep ;
22
21
import com .diffplug .spotless .SerializedFunction ;
23
22
24
23
/** Simple step which checks for consistent indentation characters. */
25
- public final class IndentStep implements Serializable {
24
+ public final class IndentStep implements RoundedStep {
26
25
private static final long serialVersionUID = 1L ;
27
26
28
27
final Type type ;
Original file line number Diff line number Diff line change 26
26
import com .diffplug .spotless .*;
27
27
28
28
/** Wraps up <a href="https://github.com/cqfn/diKTat">diktat</a> as a FormatterStep. */
29
- public class DiktatStep implements Serializable {
29
+ public class DiktatStep implements RoundedStep {
30
30
private static final long serialVersionUID = 1L ;
31
31
private final JarState .Promised jarState ;
32
32
private final String versionDiktat ;
You can’t perform that action at this time.
0 commit comments