Update dependencies
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user