Update dependencies

This commit is contained in:
Mahmoud Ben Hassine
2021-11-24 11:09:02 +01:00
parent f2cfda0eda
commit 411055f433
3 changed files with 39 additions and 25 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2010-2014 the original author or authors.
* Copyright 2010-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -19,6 +19,10 @@ import java.math.BigDecimal;
import java.util.HashMap;
import java.util.Map;
import com.thoughtworks.xstream.security.ArrayTypePermission;
import com.thoughtworks.xstream.security.ExplicitTypePermission;
import com.thoughtworks.xstream.security.WildcardTypePermission;
import org.springframework.batch.item.xml.domain.Trade;
import org.springframework.oxm.Unmarshaller;
import org.springframework.oxm.xstream.XStreamMarshaller;
@@ -38,6 +42,7 @@ public class XStreamUnmarshallingTests extends AbstractStaxEventReaderItemReader
unmarshaller.addAlias("customer", String.class);
unmarshaller.addAlias("price", BigDecimal.class);*/
unmarshaller.setAliases(aliasesMap);
unmarshaller.setTypePermissions(new ExplicitTypePermission(new String[]{"org.springframework.batch.item.xml.domain.Trade"}));
return unmarshaller;
}