[YouTube] Suppress Sonar security warning for XEE

This commit is contained in:
Stypox 2022-04-30 21:56:23 +02:00 committed by TiA4f8R
parent ba68b8c014
commit 8226fd044f
No known key found for this signature in database
GPG Key ID: E6D3E7F5949450DD
1 changed files with 1 additions and 0 deletions

View File

@ -1649,6 +1649,7 @@ public final class YoutubeDashManifestCreator {
private static String documentToXml(@Nonnull final Document document)
throws TransformerException {
@SuppressWarnings("java:S2755") // see javadoc: this is actually taken care of
final TransformerFactory transformerFactory = TransformerFactory.newInstance();
transformerFactory.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, true);