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-secure-xml.git

commit 26a9e3a5f1d82bc047938872332d596321d9c0e6
Author: Gary Gregory <[email protected]>
AuthorDate: Wed Sep 2 07:10:38 2026 -0400

    Fix inline comment
---
 .../java/org/apache/commons/xml/secure/SecureTransformerFactory.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/src/main/java/org/apache/commons/xml/secure/SecureTransformerFactory.java 
b/src/main/java/org/apache/commons/xml/secure/SecureTransformerFactory.java
index 78edf6f..bc2bbd9 100644
--- a/src/main/java/org/apache/commons/xml/secure/SecureTransformerFactory.java
+++ b/src/main/java/org/apache/commons/xml/secure/SecureTransformerFactory.java
@@ -272,7 +272,7 @@ public TemplatesHandler newTemplatesHandler() throws 
TransformerConfigurationExc
         @Override
         public Transformer newTransformer() throws 
TransformerConfigurationException {
             // Identity transformer: still parses runtime sources, so wrap it 
to secure Transformer.transform(Source, Result).
-            // newTemplatesHandler() should never return null for a 
specification-compliant factory.
+            // newTransformer() should never return null for a 
specification-compliant factory.
             final Transformer transformer = delegate.newTransformer();
             return transformer == null ? null : new 
SecureTransformer(transformer, getURIResolver(), emptySource, 
overrideDefaultParser());
         }

Reply via email to