mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
Remove deprecated XStream.setupDefaultSecurity calls (#11365)
The XStream.setupDefaultSecurity method is deprecated since XStream 1.4.18. It no longer does anything, because this is the default in newer XStream versions. Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
parent
3253fbece8
commit
d4e15bfbd6
@ -63,7 +63,6 @@ public class CcuGateway extends AbstractHomematicGateway {
|
|||||||
HttpClient httpClient) {
|
HttpClient httpClient) {
|
||||||
super(id, config, gatewayAdapter, httpClient);
|
super(id, config, gatewayAdapter, httpClient);
|
||||||
|
|
||||||
XStream.setupDefaultSecurity(xStream);
|
|
||||||
xStream.allowTypesByWildcard(new String[] { HmDevice.class.getPackageName() + ".**" });
|
xStream.allowTypesByWildcard(new String[] { HmDevice.class.getPackageName() + ".**" });
|
||||||
xStream.setClassLoader(CcuGateway.class.getClassLoader());
|
xStream.setClassLoader(CcuGateway.class.getClassLoader());
|
||||||
xStream.autodetectAnnotations(true);
|
xStream.autodetectAnnotations(true);
|
||||||
|
@ -146,7 +146,6 @@ public class LcnPchkDiscoveryService extends AbstractDiscoveryService {
|
|||||||
|
|
||||||
ServicesResponse xmlToServiceResponse(String response) {
|
ServicesResponse xmlToServiceResponse(String response) {
|
||||||
XStream xstream = new XStream(new StaxDriver());
|
XStream xstream = new XStream(new StaxDriver());
|
||||||
XStream.setupDefaultSecurity(xstream);
|
|
||||||
xstream.allowTypesByWildcard(new String[] { ServicesResponse.class.getPackageName() + ".**" });
|
xstream.allowTypesByWildcard(new String[] { ServicesResponse.class.getPackageName() + ".**" });
|
||||||
xstream.setClassLoader(getClass().getClassLoader());
|
xstream.setClassLoader(getClass().getClassLoader());
|
||||||
xstream.autodetectAnnotations(true);
|
xstream.autodetectAnnotations(true);
|
||||||
|
@ -59,7 +59,6 @@ public class DbXmlInfoReader {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void configureSecurity(XStream xstream) {
|
private void configureSecurity(XStream xstream) {
|
||||||
XStream.setupDefaultSecurity(xstream);
|
|
||||||
xstream.allowTypesByWildcard(new String[] { Project.class.getPackageName() + ".**" });
|
xstream.allowTypesByWildcard(new String[] { Project.class.getPackageName() + ".**" });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user