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 45efe61e6a45ea5b0a75232dfcfd0ca3462d4c20
Author: Gary Gregory <[email protected]>
AuthorDate: Fri Aug 28 16:55:01 2026 -0400

    Fix typos about Android.
---
 .../java/org/apache/commons/xml/SecureDocumentBuilderFactory.java   | 6 +++---
 src/main/java/org/apache/commons/xml/SecureTransformerFactory.java  | 2 +-
 src/main/java/org/apache/commons/xml/SecureXPath.java               | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git 
a/src/main/java/org/apache/commons/xml/SecureDocumentBuilderFactory.java 
b/src/main/java/org/apache/commons/xml/SecureDocumentBuilderFactory.java
index 7b4d65f..cbee985 100644
--- a/src/main/java/org/apache/commons/xml/SecureDocumentBuilderFactory.java
+++ b/src/main/java/org/apache/commons/xml/SecureDocumentBuilderFactory.java
@@ -238,7 +238,7 @@ public static DocumentBuilderFactory newDefaultNSInstance() 
{
      *
      * @return A secure factory.
      * @throws IllegalStateException     Thrown if a required secure setting 
cannot be applied to the underlying implementation.
-     * @throws IllegalStateException     Thrown if a (non-Andoid) factory 
cannot support the secure processing feature
+     * @throws IllegalStateException     Thrown if a (non-Android) factory 
cannot support the secure processing feature
      *                                   {@link 
XMLConstants#FEATURE_SECURE_PROCESSING}.
      * @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.
@@ -254,7 +254,7 @@ public static DocumentBuilderFactory newInstance() {
      * @param classLoader      The class loader used to load the factory 
class; {@code null} means the current thread's context class loader.
      * @return A secure factory.
      * @throws IllegalStateException     Thrown if a required secure setting 
cannot be applied to the underlying implementation.
-     * @throws IllegalStateException     Thrown if a (non-Andoid) factory 
cannot support the secure processing feature
+     * @throws IllegalStateException     Thrown if a (non-Android) factory 
cannot support the secure processing feature
      *                                   {@link 
XMLConstants#FEATURE_SECURE_PROCESSING}.
      * @throws FactoryConfigurationError Thrown if {@code factoryClassName} is 
{@code null} or the factory class cannot be loaded or instantiated.
      */
@@ -325,7 +325,7 @@ public static DocumentBuilderFactory newNSInstance(final 
String factoryClassName
      *
      * @param factory The factory to harden.
      * @return A new secure factory or the original factory, as-is, if it is a 
known Android factory.
-     * @throws SecureException Thrown if a (non-Andoid) factory cannot support 
the secure processing feature {@link XMLConstants#FEATURE_SECURE_PROCESSING}.
+     * @throws SecureException Thrown if a (non-Android) factory cannot 
support the secure processing feature {@link 
XMLConstants#FEATURE_SECURE_PROCESSING}.
      */
     static DocumentBuilderFactory secure(final DocumentBuilderFactory factory) 
{
         // Android exposes no FSP, ACCESS_EXTERNAL_* or attribute API, and 
KXmlParser drops user-defined entities; nothing to apply.
diff --git a/src/main/java/org/apache/commons/xml/SecureTransformerFactory.java 
b/src/main/java/org/apache/commons/xml/SecureTransformerFactory.java
index 7033e74..74394f4 100644
--- a/src/main/java/org/apache/commons/xml/SecureTransformerFactory.java
+++ b/src/main/java/org/apache/commons/xml/SecureTransformerFactory.java
@@ -228,7 +228,7 @@ private TransformerHandler hardenHandler(final 
TransformerHandler handler) {
          * @throws TransformerConfigurationException 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 SecureException Thrown if a (non-Andoid) factory cannot 
support the secure processing feature {@link 
XMLConstants#FEATURE_SECURE_PROCESSING}.
+         * @throws SecureException Thrown if a (non-Android) factory cannot 
support the secure processing feature {@link 
XMLConstants#FEATURE_SECURE_PROCESSING}.
          */
         private Source hardenSourceToDom(final Source source) throws 
TransformerConfigurationException {
             if (source instanceof StreamSource || source instanceof SAXSource 
&& ((SAXSource) source).getXMLReader() == null) {
diff --git a/src/main/java/org/apache/commons/xml/SecureXPath.java 
b/src/main/java/org/apache/commons/xml/SecureXPath.java
index bf3cc3f..a8ec2a3 100644
--- a/src/main/java/org/apache/commons/xml/SecureXPath.java
+++ b/src/main/java/org/apache/commons/xml/SecureXPath.java
@@ -62,7 +62,7 @@ final class SecureXPath 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 SecureException Thrown if a (non-Andoid) factory cannot support 
the secure processing feature {@link XMLConstants#FEATURE_SECURE_PROCESSING}.
+     * @throws SecureException Thrown if a (non-Android) factory cannot 
support the secure processing feature {@link 
XMLConstants#FEATURE_SECURE_PROCESSING}.
      */
     static Document parse(final InputSource source, final boolean 
overrideDefaultParser) throws XPathExpressionException {
         Objects.requireNonNull(source, "source");

Reply via email to