Skip to content

Commit 9c9cac0

Browse files
committed
If we undo the fix from #2378, then the custom steps work. Ugh.
1 parent 1b7189d commit 9c9cac0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
package com.diffplug.spotless;
1717

1818
import java.io.IOException;
19-
import java.io.Serializable;
2019
import java.util.ArrayList;
2120
import java.util.Collection;
2221
import java.util.List;
@@ -61,7 +60,7 @@ private void writeObject(java.io.ObjectOutputStream out) throws IOException {
6160
for (Object obj : backingList) {
6261
// if write out the list on its own, we'll get java's non-deterministic object-graph serialization
6362
// by writing each object to raw bytes independently, we avoid this
64-
out.writeObject(LazyForwardingEquality.toBytes((Serializable) obj));
63+
out.writeObject(obj);
6564
}
6665
}
6766

@@ -71,7 +70,7 @@ private void readObject(java.io.ObjectInputStream in) throws IOException, ClassN
7170
backingList = new ArrayList<>();
7271
int size = in.readInt();
7372
for (int i = 0; i < size; i++) {
74-
backingList.add(LazyForwardingEquality.fromBytes((byte[]) in.readObject()));
73+
backingList.add(in.readObject());
7574
}
7675
}
7776

0 commit comments

Comments
 (0)