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 93755f5  Normalize spelling.
93755f5 is described below

commit 93755f529a0674cf1aef195d26fda38b12f3bdae
Author: Gary Gregory <[email protected]>
AuthorDate: Tue Jul 7 06:50:47 2026 -0400

    Normalize spelling.
---
 src/main/java/org/apache/commons/xml/DocumentBuilderHardener.java | 4 ++--
 src/main/java/org/apache/commons/xml/Limits.java                  | 8 ++++----
 src/main/java/org/apache/commons/xml/SAXParserHardener.java       | 2 +-
 src/main/java/org/apache/commons/xml/StaxHardener.java            | 2 +-
 src/main/java/org/apache/commons/xml/TransformerHardener.java     | 2 +-
 .../org/apache/commons/xml/UnsupportedXmlImplementationTest.java  | 2 +-
 6 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/src/main/java/org/apache/commons/xml/DocumentBuilderHardener.java 
b/src/main/java/org/apache/commons/xml/DocumentBuilderHardener.java
index 32581d8..b0484a0 100644
--- a/src/main/java/org/apache/commons/xml/DocumentBuilderHardener.java
+++ b/src/main/java/org/apache/commons/xml/DocumentBuilderHardener.java
@@ -41,7 +41,7 @@
  *         DOCTYPE-only document parses without a fetch attempt. If not 
supported, the fetch will throw instead, due to the following settings.</li>
  *     <li><strong>Limits</strong>: applied best-effort by {@link 
Limits#tryApply(DocumentBuilderFactory)}, which adapts to the JDK attribute 
limits or Xerces'
  *         {@code SecurityManager} as appropriate.</li>
- *     <li><strong>{@code ACCESS_EXTERNAL_DTD}</strong>: the dividing 
capability. Implementations that honour it (the JDK-internal Xerces) block 
external fetches
+ *     <li><strong>{@code ACCESS_EXTERNAL_DTD}</strong>: the dividing 
capability. Implementations that honor it (the JDK-internal Xerces) block 
external fetches
  *         through the JAXP 1.5 properties and are returned as-is. 
Implementations that reject it (the external Xerces distribution) are wrapped 
so a deny-all
  *         {@link EntityResolver} is installed on every {@link 
DocumentBuilder} produced.</li>
  * </ul>
@@ -51,7 +51,7 @@ final class DocumentBuilderHardener {
     /**
      * Wrapper that sets a deny-all {@link EntityResolver} on every {@link 
DocumentBuilder} produced.
      *
-     * <p>Required for implementations that do not honour JAXP 1.5 {@code 
ACCESS_EXTERNAL_*} (the external Xerces distribution): the factory carries no 
resolver
+     * <p>Required for implementations that do not honor JAXP 1.5 {@code 
ACCESS_EXTERNAL_*} (the external Xerces distribution): the factory carries no 
resolver
      * of its own, so it has to be set on each builder.</p>
      */
     private static final class HardeningDocumentBuilderFactory extends 
DelegatingDocumentBuilderFactory {
diff --git a/src/main/java/org/apache/commons/xml/Limits.java 
b/src/main/java/org/apache/commons/xml/Limits.java
index 7b4e0cd..ec00834 100644
--- a/src/main/java/org/apache/commons/xml/Limits.java
+++ b/src/main/java/org/apache/commons/xml/Limits.java
@@ -39,7 +39,7 @@
  * <p>The numeric defaults below are mirrored from the {@code secureValue} 
column of {@code jdk.xml.internal.XMLSecurityManager.Limit} in
  * <strong>JDK 25</strong>.</p>
  *
- * <p>Each limit can be overridden at runtime via the same JDK system property 
the JDK itself honours, so applications already tuning the JDK parser get the
+ * <p>Each limit can be overridden at runtime via the same JDK system property 
the JDK itself honors, so applications already tuning the JDK parser get the
  * same value applied to the bundled Xerces and Woodstox parsers without 
further configuration.</p>
  */
 final class Limits {
@@ -183,7 +183,7 @@ final class Limits {
      */
     private static final String SP_ELEMENT_ATTRIBUTE_LIMIT = 
"jdk.xml.elementAttributeLimit";
     /**
-     * JDK system property name for the entity-expansion limit; same name the 
JDK Zephyr/Xerces stack honours.
+     * JDK system property name for the entity-expansion limit; same name the 
JDK Zephyr/Xerces stack honors.
      */
     private static final String SP_ENTITY_EXPANSION_LIMIT = 
"jdk.xml.entityExpansionLimit";
     /**
@@ -341,7 +341,7 @@ static void tryApply(final DocumentBuilderFactory factory) {
     /**
      * Best-effort application of the JDK processing limits to a {@link 
TransformerFactory}.
      *
-     * <p>The stock JDK's XSLTC honours the JDK limit attributes, so this pins 
them to JDK 25 secure values; other implementations (Apache Xalan) reject the
+     * <p>The stock JDK's XSLTC honors the JDK limit attributes, so this pins 
them to JDK 25 secure values; other implementations (Apache Xalan) reject the
      * attributes and their caps come from {@link 
javax.xml.XMLConstants#FEATURE_SECURE_PROCESSING} instead. Neither path throws 
if the implementation declines a
      * limit.</p>
      *
@@ -354,7 +354,7 @@ static void tryApply(final TransformerFactory factory) {
     /**
      * Best-effort application of the processing limits to an {@link 
XMLInputFactory}, regardless of implementation.
      *
-     * <p>The JDK's Zephyr honours the JDK URL limit properties; Woodstox 
honours its own {@code com.ctc.wstx.*} properties. Each implementation rejects 
the
+     * <p>The JDK's Zephyr honors the JDK URL limit properties; Woodstox 
honors its own {@code com.ctc.wstx.*} properties. Each implementation rejects 
the
      * other's, so both sets are applied best-effort and the rejected ones are 
skipped silently.</p>
      *
      * @param factory The target factory to modify.
diff --git a/src/main/java/org/apache/commons/xml/SAXParserHardener.java 
b/src/main/java/org/apache/commons/xml/SAXParserHardener.java
index 9e99ed5..7b1fb7d 100644
--- a/src/main/java/org/apache/commons/xml/SAXParserHardener.java
+++ b/src/main/java/org/apache/commons/xml/SAXParserHardener.java
@@ -53,7 +53,7 @@
  *         DOCTYPE-only document parses without a fetch attempt. If not 
supported, the fetch will throw instead, due to the following settings.</li>
  *     <li><strong>Limits</strong>: applied best-effort by {@link 
Limits#tryApply(XMLReader)}, which adapts to the JDK limit properties or Xerces'
  *         {@code SecurityManager} as appropriate.</li>
- *     <li><strong>{@code ACCESS_EXTERNAL_*}</strong>: the dividing 
capability. Readers that honour it (the JDK-internal Xerces) block external 
fetches through
+ *     <li><strong>{@code ACCESS_EXTERNAL_*}</strong>: the dividing 
capability. Readers that honor it (the JDK-internal Xerces) block external 
fetches through
  *         the JAXP 1.5 properties and are returned as-is. Readers that reject 
it (the external Xerces distribution) get a deny-all {@link EntityResolver}
  *         installed instead.</li>
  * </ul>
diff --git a/src/main/java/org/apache/commons/xml/StaxHardener.java 
b/src/main/java/org/apache/commons/xml/StaxHardener.java
index 378edc1..dc0241f 100644
--- a/src/main/java/org/apache/commons/xml/StaxHardener.java
+++ b/src/main/java/org/apache/commons/xml/StaxHardener.java
@@ -31,7 +31,7 @@
  * probes which properties each factory accepts and adapts:</p>
  * <ul>
  *     <li><strong>Limits</strong>: applied best-effort by {@link 
Limits#tryApply(XMLInputFactory)}, which sets both the JDK and the Woodstox 
limit properties;
- *         each implementation honours its own and rejects the other's.</li>
+ *         each implementation honors its own and rejects the other's.</li>
  *     <li><strong>External DTD subset</strong>: skipped via Zephyr's {@value 
#ZEPHYR_IGNORE_EXTERNAL_DTD} (best-effort), so a DOCTYPE-only document parses
  *         without a fetch attempt instead of tripping the deny-all resolver 
below. Woodstox skips it through {@value #WSTX_DTD_RESOLVER} instead.</li>
  *     <li><strong>External entities</strong>: denied through resolvers, 
leaving the standard {@code SUPPORT_DTD} / {@code 
IS_SUPPORTING_EXTERNAL_ENTITIES}
diff --git a/src/main/java/org/apache/commons/xml/TransformerHardener.java 
b/src/main/java/org/apache/commons/xml/TransformerHardener.java
index 409e89c..ae052b7 100644
--- a/src/main/java/org/apache/commons/xml/TransformerHardener.java
+++ b/src/main/java/org/apache/commons/xml/TransformerHardener.java
@@ -43,7 +43,7 @@
  *         hardening surface is reachable only through a vendor API.</li>
  *     <li><strong>FSP</strong> ({@link 
XMLConstants#FEATURE_SECURE_PROCESSING}): required. On XSLTC it enables the 
runtime evaluator limits; on Xalan it disables
  *         reflection-based extension functions.</li>
- *     <li><strong>Limits</strong>: applied best-effort by {@link 
Limits#tryApply(TransformerFactory)}. XSLTC honours the JDK attribute limits; 
Xalan ignores them
+ *     <li><strong>Limits</strong>: applied best-effort by {@link 
Limits#tryApply(TransformerFactory)}. XSLTC honors the JDK attribute limits; 
Xalan ignores them
  *         (its caps come from FSP).</li>
  *     <li><strong>{@code ACCESS_EXTERNAL_DTD}</strong> (set to {@code ""}): 
required on XSLTC. XSLTC copies this factory attribute onto the reader that 
parses the
  *         stylesheet ({@code Util.getInputSource}), overwriting the {@code 
ACCESS_EXTERNAL_DTD} the wrapper's hardened reader had already set; without it a
diff --git 
a/src/test/java/org/apache/commons/xml/UnsupportedXmlImplementationTest.java 
b/src/test/java/org/apache/commons/xml/UnsupportedXmlImplementationTest.java
index a6f7aa6..138eb00 100644
--- a/src/test/java/org/apache/commons/xml/UnsupportedXmlImplementationTest.java
+++ b/src/test/java/org/apache/commons/xml/UnsupportedXmlImplementationTest.java
@@ -32,7 +32,7 @@
 import org.xml.sax.SAXNotSupportedException;
 
 /**
- * Verifies that an implementation which does not honour the required 
secure-processing feature surfaces {@link IllegalStateException} with a message 
naming the
+ * Verifies that an implementation which does not honor the required 
secure-processing feature surfaces {@link IllegalStateException} with a message 
naming the
  * class.
  */
 class UnsupportedXmlImplementationTest {

Reply via email to