Upgrade to XStream 1.4.18.

Closes #2152
This commit is contained in:
Mark Paluch
2021-09-01 10:59:45 +02:00
parent f215f9dd31
commit f205d574b5
2 changed files with 4 additions and 1 deletions

View File

@@ -18,6 +18,8 @@ package org.springframework.data.redis.test;
import org.springframework.data.redis.serializer.OxmSerializer;
import org.springframework.oxm.xstream.XStreamMarshaller;
import com.thoughtworks.xstream.security.AnyTypePermission;
/**
* @author Mark Paluch
*/
@@ -31,6 +33,7 @@ public final class XstreamOxmSerializerSingleton {
// XStream serializer
XStreamMarshaller xstream = new XStreamMarshaller();
xstream.getXStream().addPermission(AnyTypePermission.ANY);
try {
xstream.afterPropertiesSet();
} catch (Exception ex) {