]> git.basschouten.com Git - openhab-addons.git/commitdiff
Remove deprecated XStream.setupDefaultSecurity calls (#11365)
authorWouter Born <github@maindrain.net>
Sun, 10 Oct 2021 18:30:07 +0000 (20:30 +0200)
committerGitHub <noreply@github.com>
Sun, 10 Oct 2021 18:30:07 +0000 (20:30 +0200)
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>
bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/communicator/CcuGateway.java
bundles/org.openhab.binding.lcn/src/main/java/org/openhab/binding/lcn/internal/pchkdiscovery/LcnPchkDiscoveryService.java
bundles/org.openhab.binding.lutron/src/main/java/org/openhab/binding/lutron/internal/xml/DbXmlInfoReader.java

index 5810194cd420ee45725d024eb70f70d47b29bcfe..12f83c1ae20822fba27a5fb1e9d87dc0d18e6bb0 100644 (file)
@@ -63,7 +63,6 @@ public class CcuGateway extends AbstractHomematicGateway {
             HttpClient httpClient) {
         super(id, config, gatewayAdapter, httpClient);
 
-        XStream.setupDefaultSecurity(xStream);
         xStream.allowTypesByWildcard(new String[] { HmDevice.class.getPackageName() + ".**" });
         xStream.setClassLoader(CcuGateway.class.getClassLoader());
         xStream.autodetectAnnotations(true);
index 1780e327ade95036429b9532afbecc5bfaff4584..19ba1745842682f0b93f0ce82ecd5917d2ff1db0 100644 (file)
@@ -146,7 +146,6 @@ public class LcnPchkDiscoveryService extends AbstractDiscoveryService {
 
     ServicesResponse xmlToServiceResponse(String response) {
         XStream xstream = new XStream(new StaxDriver());
-        XStream.setupDefaultSecurity(xstream);
         xstream.allowTypesByWildcard(new String[] { ServicesResponse.class.getPackageName() + ".**" });
         xstream.setClassLoader(getClass().getClassLoader());
         xstream.autodetectAnnotations(true);
index f57638c82281e39e81b9c2ab29e172755169d229..d027f6d840e12706549415374e2ffd8af146189c 100644 (file)
@@ -59,7 +59,6 @@ public class DbXmlInfoReader {
     }
 
     private void configureSecurity(XStream xstream) {
-        XStream.setupDefaultSecurity(xstream);
         xstream.allowTypesByWildcard(new String[] { Project.class.getPackageName() + ".**" });
     }