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 a6878ca47f6558167636fd811218b7aa57b644bb
Author: Gary Gregory <[email protected]>
AuthorDate: Mon Aug 31 07:21:31 2026 -0400

    Simplify.
---
 .../org/apache/commons/xml/secure/FallbackIgnoreURIResolver.java   | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git 
a/src/main/java/org/apache/commons/xml/secure/FallbackIgnoreURIResolver.java 
b/src/main/java/org/apache/commons/xml/secure/FallbackIgnoreURIResolver.java
index 277d233..4fc0e00 100644
--- a/src/main/java/org/apache/commons/xml/secure/FallbackIgnoreURIResolver.java
+++ b/src/main/java/org/apache/commons/xml/secure/FallbackIgnoreURIResolver.java
@@ -60,21 +60,18 @@ final class FallbackIgnoreURIResolver implements 
URIResolver {
     private static final Document EMPTY_DOCUMENT;
 
     static {
-        EMPTY_DOCUMENT = newEmptyDocument();
+        EMPTY_DOCUMENT = 
newEmptyDocument(DocumentBuilderFactory.newInstance());
     }
 
     /**
      * Creates a new empty document.
      *
+     * @param factory the factory to use to create a new document builder.
      * @return a new empty document.
      * @throws SecureException        Thrown if a {@link DocumentBuilder} 
cannot be created which satisfies the configuration requested.
      * @throws ExceptionInInitializerError 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.
      */
-    private static Document newEmptyDocument() {
-        return newEmptyDocument(DocumentBuilderFactory.newInstance());
-    }
-
     private static Document newEmptyDocument(final DocumentBuilderFactory 
factory) {
         try {
             return factory.newDocumentBuilder().newDocument();

Reply via email to