BAEL-5214: Upgrade xstream and jettison versions (#11332)
This commit is contained in:
@@ -7,7 +7,11 @@ import com.thoughtworks.xstream.io.json.JsonHierarchicalStreamDriver;
|
||||
public class SimpleXstreamInitializer {
|
||||
|
||||
public XStream getXstreamInstance() {
|
||||
return new XStream();
|
||||
XStream xstream = new XStream();
|
||||
xstream.allowTypesByWildcard(new String[]{
|
||||
"com.baeldung.**"
|
||||
});
|
||||
return xstream;
|
||||
}
|
||||
|
||||
public XStream getXstreamJettisonMappedInstance() {
|
||||
|
||||
@@ -21,6 +21,7 @@ public final class XStreamBasicsUnitTest {
|
||||
public void before() {
|
||||
xstream = new XStream();
|
||||
xstream.alias("person", Person.class);
|
||||
xstream.allowTypes(new Class<?>[] { Person.class });
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user