Skip to content

Commit 8034ce7

Browse files
committed
[LANG-1759] SerializationUtils.clone(Object) throws ClassCastException
when called with a Serializable lambda
1 parent a01471c commit 8034ce7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/org/apache/commons/lang3/SerializationUtilsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public void testCloneNull() {
9898
}
9999

100100
@Test
101-
void testCloneSerializableSupplier() {
101+
public void testCloneSerializableSupplier() {
102102
final SerializableSupplier<String> supplier = () -> "test";
103103
assertEquals("test", supplier.get());
104104
final SerializableSupplier<String> clone = SerializationUtils.clone(supplier);

0 commit comments

Comments
 (0)