Skip to content

Commit

Permalink
If we undo the fix from #2378, then the custom steps work. Ugh.
Browse files Browse the repository at this point in the history
  • Loading branch information
nedtwigg committed Jan 6, 2025
1 parent 1b7189d commit 9c9cac0
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
package com.diffplug.spotless;

import java.io.IOException;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
Expand Down Expand Up @@ -61,7 +60,7 @@ private void writeObject(java.io.ObjectOutputStream out) throws IOException {
for (Object obj : backingList) {
// if write out the list on its own, we'll get java's non-deterministic object-graph serialization
// by writing each object to raw bytes independently, we avoid this
out.writeObject(LazyForwardingEquality.toBytes((Serializable) obj));
out.writeObject(obj);
}
}

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

Expand Down

0 comments on commit 9c9cac0

Please sign in to comment.