You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2026/08/26 17:53:19 UTC
(commons-xml) 03/06: Javadoc: Document exception from DocumentBuilderHardener.harden()
This is an automated email from the ASF dual-hosted git repository.
garydgregory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/commons-xml.git
commit 39530f3dcc8993bd0a34462a126be6060aa486d6
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Wed Aug 26 13:50:26 2026 -0400
Javadoc: Document exception from DocumentBuilderHardener.harden()
---
src/main/java/org/apache/commons/xml/HardeningXPath.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/main/java/org/apache/commons/xml/HardeningXPath.java b/src/main/java/org/apache/commons/xml/HardeningXPath.java
index fe84b19..4825629 100644
--- a/src/main/java/org/apache/commons/xml/HardeningXPath.java
+++ b/src/main/java/org/apache/commons/xml/HardeningXPath.java
@@ -20,6 +20,7 @@
import java.io.IOException;
import java.util.Objects;
+import javax.xml.XMLConstants;
import javax.xml.namespace.NamespaceContext;
import javax.xml.namespace.QName;
import javax.xml.parsers.DocumentBuilderFactory;
@@ -60,6 +61,7 @@ final class HardeningXPath implements XPath {
* @throws XPathExpressionException if the source cannot be parsed.
* @throws FactoryConfigurationError Thrown from a factory in case of a {@link java.util.ServiceConfigurationError service
* configuration error} or if the implementation is not available or cannot be instantiated.
+ * @throws HardeningException Thrown if a (non-Andoid) factory cannot support the secure processing feature {@link XMLConstants#FEATURE_SECURE_PROCESSING}.
*/
static Document parse(final InputSource source) throws XPathExpressionException {
Objects.requireNonNull(source, "source");