Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: ObjectCloner.clone may return original object
  • Loading branch information
sebthom committed Nov 26, 2025
commit dfe1c3aaa3adcd1eb649c2efc989b7cf038839ce
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public final class ObjectCloner {

final var shallowClone = shallowClone(obj, () -> obj);
clones.put(obj, shallowClone);
return obj;
return shallowClone;
}

private static @Nullable <@Nullable T> T deepCloneNullable(final T obj, final Map<Object, @Nullable Object> clones) {
Expand Down