You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2019/11/23 12:10:28 UTC
svn commit: r1870226 -
/pdfbox/branches/issue45/preflight/src/main/java/org/apache/pdfbox/preflight/Validator_A1b.java
Author: tilman
Date: Sat Nov 23 12:10:28 2019
New Revision: 1870226
URL: http://svn.apache.org/viewvc?rev=1870226&view=rev
Log:
PDFBOX-4071: disable irrelevant SonarQube vulnerabilities warnings on self-created XML
Modified:
pdfbox/branches/issue45/preflight/src/main/java/org/apache/pdfbox/preflight/Validator_A1b.java
Modified: pdfbox/branches/issue45/preflight/src/main/java/org/apache/pdfbox/preflight/Validator_A1b.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/issue45/preflight/src/main/java/org/apache/pdfbox/preflight/Validator_A1b.java?rev=1870226&r1=1870225&r2=1870226&view=diff
==============================================================================
--- pdfbox/branches/issue45/preflight/src/main/java/org/apache/pdfbox/preflight/Validator_A1b.java (original)
+++ pdfbox/branches/issue45/preflight/src/main/java/org/apache/pdfbox/preflight/Validator_A1b.java Sat Nov 23 12:10:28 2019
@@ -95,13 +95,14 @@ public class Validator_A1b
}
else
{
- @SuppressWarnings({"squid:S4435","squid:S2755"}) // self-created XML
+ @SuppressWarnings({"squid:S4435"}) // self-created XML
Transformer transformer = TransformerFactory.newInstance().newTransformer();
transformer.setOutputProperty(OutputKeys.INDENT, "yes");
transformer.setOutputProperty("{http://xml.apache.org/xslt}indent-amount", "2");
XmlResultParser xrp = new XmlResultParser();
if (isGroup)
{
+ @SuppressWarnings({"squid:S2755"}) // self-created XML
Document document = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument();
Element root = document.createElement("preflights");
document.appendChild(root);