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
The following commit(s) were added to refs/heads/main by this push:
new 24a7760 Javadoc
24a7760 is described below
commit 24a7760926c4fcb367e8b0b3bea14901f12c3343
Author: Gary Gregory <[email protected]>
AuthorDate: Wed Aug 26 13:29:06 2026 -0400
Javadoc
---
src/main/java/org/apache/commons/xml/XPathHardener.java | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/main/java/org/apache/commons/xml/XPathHardener.java
b/src/main/java/org/apache/commons/xml/XPathHardener.java
index 18fd093..2ed8f37 100644
--- a/src/main/java/org/apache/commons/xml/XPathHardener.java
+++ b/src/main/java/org/apache/commons/xml/XPathHardener.java
@@ -86,6 +86,13 @@ private static void setFeature(final XPathFactory factory,
final String feature,
}
}
+ /**
+ * Sets an optional feature on the given factory, ignoring it if the
implementation does not recognize it.
+ *
+ * @param factory The factory to harden.
+ * @param feature The feature to set.
+ * @param value The value to set.
+ */
private static void setOptionalFeature(final XPathFactory factory, final
String feature, final boolean value) {
try {
factory.setFeature(feature, value);