BAEL-5214: Upgrade xstream and jettison versions (#11332)
This commit is contained in:
parent
2f183181d4
commit
a11613cf36
|
@ -30,8 +30,8 @@
|
|||
</dependencies>
|
||||
|
||||
<properties>
|
||||
<xstream.version>1.4.10</xstream.version>
|
||||
<jettison.version>1.3.8</jettison.version>
|
||||
<xstream.version>1.4.18</xstream.version>
|
||||
<jettison.version>1.4.1</jettison.version>
|
||||
</properties>
|
||||
|
||||
</project>
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue