Remove deprecated XStream.setupDefaultSecurity call (#2516)

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:36:25 +02:00 committed by GitHub
parent d2557f950c
commit 875ca0602e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,7 +73,6 @@ public abstract class XmlDocumentReader<@NonNull T> {
* @see https://x-stream.github.io/security.html
*/
protected void configureSecurity(XStream xstream) {
XStream.setupDefaultSecurity(xstream);
xstream.allowTypesByWildcard(DEFAULT_ALLOWED_TYPES_WILDCARD);
}