Skip to content

Commit 9fa1da3

Browse files
committed
Fix spotbugs warnings.
1 parent 6f7edd3 commit 9fa1da3

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

lib/src/main/java/com/diffplug/spotless/FileSignature.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,9 @@ private FileSignature(final List<File> files) throws IOException {
9898

9999
/** A view of `FileSignature` which can be safely roundtripped. */
100100
public static class RoundTrippable implements Serializable {
101+
private static final long serialVersionUID = 1L;
101102
private final List<File> files;
103+
@SuppressFBWarnings("SE_TRANSIENT_FIELD_NOT_RESTORED")
102104
private transient @Nullable FileSignature cached;
103105

104106
private RoundTrippable(List<File> files, FileSignature cached) {

lib/src/main/java/com/diffplug/spotless/JarState.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
public final class JarState implements Serializable {
4040
/** A lazily evaluated JarState, which becomes a set of files when serialized. */
4141
public static class Promised implements Serializable {
42+
private static final long serialVersionUID = 1L;
4243
private final transient ThrowingEx.Supplier<JarState> supplier;
4344
private FileSignature.RoundTrippable cached;
4445

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626

2727
/** Wraps up <a href="https://github.com/cqfn/diKTat">diktat</a> as a FormatterStep. */
2828
public class DiktatStep extends FormatterStepEqualityOnStateSerialization<DiktatStep.State> {
29+
private static final long serialVersionUID = 1L;
2930
private final JarState.Promised jarState;
3031
private final boolean isScript;
3132
private final @Nullable FileSignature.RoundTrippable config;

0 commit comments

Comments
 (0)