Skip to content

Commit

Permalink
[LANG-1759] SerializationUtils.clone(Object) throws ClassCastException
Browse files Browse the repository at this point in the history
when called with a Serializable lambda
  • Loading branch information
garydgregory committed Dec 6, 2024
1 parent a01471c commit 8034ce7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public void testCloneNull() {
}

@Test
void testCloneSerializableSupplier() {
public void testCloneSerializableSupplier() {
final SerializableSupplier<String> supplier = () -> "test";
assertEquals("test", supplier.get());
final SerializableSupplier<String> clone = SerializationUtils.clone(supplier);
Expand Down

0 comments on commit 8034ce7

Please sign in to comment.