File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
lib/src/main/java/com/diffplug/spotless Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 22
22
import java .util .List ;
23
23
import java .util .Objects ;
24
24
25
+ import edu .umd .cs .findbugs .annotations .SuppressFBWarnings ;
26
+
25
27
/**
26
28
* Gradle requires three things:
27
29
* - Gradle defines cache equality based on your serialized representation
51
53
public class ConfigurationCacheHackList implements java .io .Serializable {
52
54
private static final long serialVersionUID = 1L ;
53
55
private boolean optimizeForEquality ;
54
- public ArrayList <Object > backingList = new ArrayList <>();
56
+ private ArrayList <Object > backingList = new ArrayList <>();
55
57
56
58
private void writeObject (java .io .ObjectOutputStream out ) throws IOException {
57
59
out .writeBoolean (optimizeForEquality );
@@ -63,6 +65,7 @@ private void writeObject(java.io.ObjectOutputStream out) throws IOException {
63
65
}
64
66
}
65
67
68
+ @ SuppressFBWarnings ("MC_OVERRIDABLE_METHOD_CALL_IN_READ_OBJECT" )
66
69
private void readObject (java .io .ObjectInputStream in ) throws IOException , ClassNotFoundException {
67
70
optimizeForEquality = in .readBoolean ();
68
71
backingList = new ArrayList <>();
You can’t perform that action at this time.
0 commit comments