Skip to content

Commit 230f566

Browse files
committed
Fix spotbugs issues.
1 parent 71d49b0 commit 230f566

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
import java.util.List;
2323
import java.util.Objects;
2424

25+
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
26+
2527
/**
2628
* Gradle requires three things:
2729
* - Gradle defines cache equality based on your serialized representation
@@ -51,7 +53,7 @@
5153
public class ConfigurationCacheHackList implements java.io.Serializable {
5254
private static final long serialVersionUID = 1L;
5355
private boolean optimizeForEquality;
54-
public ArrayList<Object> backingList = new ArrayList<>();
56+
private ArrayList<Object> backingList = new ArrayList<>();
5557

5658
private void writeObject(java.io.ObjectOutputStream out) throws IOException {
5759
out.writeBoolean(optimizeForEquality);
@@ -63,6 +65,7 @@ private void writeObject(java.io.ObjectOutputStream out) throws IOException {
6365
}
6466
}
6567

68+
@SuppressFBWarnings("MC_OVERRIDABLE_METHOD_CALL_IN_READ_OBJECT")
6669
private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException {
6770
optimizeForEquality = in.readBoolean();
6871
backingList = new ArrayList<>();

0 commit comments

Comments
 (0)