From 9c9cac01a1fa27e214094814a8ce046170655846 Mon Sep 17 00:00:00 2001 From: Ned Twigg Date: Mon, 6 Jan 2025 08:37:58 -0800 Subject: [PATCH] If we undo the fix from #2378, then the custom steps work. Ugh. --- .../com/diffplug/spotless/ConfigurationCacheHackList.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/src/main/java/com/diffplug/spotless/ConfigurationCacheHackList.java b/lib/src/main/java/com/diffplug/spotless/ConfigurationCacheHackList.java index 52479bf6a..520eab3f3 100644 --- a/lib/src/main/java/com/diffplug/spotless/ConfigurationCacheHackList.java +++ b/lib/src/main/java/com/diffplug/spotless/ConfigurationCacheHackList.java @@ -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; @@ -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); } } @@ -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()); } }