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:
Wouter Born 2021-10-10 20:30:07 +02:00 committed by GitHub
parent 3253fbece8
commit d4e15bfbd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 3 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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() + ".**" });
} }