[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

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