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


The following commit(s) were added to refs/heads/main by this push:
     new 4ae7b9c  Package-private FallbackIgnoreEntityResolver2 can be final.
4ae7b9c is described below

commit 4ae7b9c4be0b3f54eb376405112d21ba50dc2a87
Author: Gary Gregory <[email protected]>
AuthorDate: Tue Sep 1 07:50:03 2026 -0400

    Package-private FallbackIgnoreEntityResolver2 can be final.
---
 .../commons/xml/secure/FallbackIgnoreEntityResolver2.java    | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git 
a/src/main/java/org/apache/commons/xml/secure/FallbackIgnoreEntityResolver2.java
 
b/src/main/java/org/apache/commons/xml/secure/FallbackIgnoreEntityResolver2.java
index 5fc2575..d2322e8 100644
--- 
a/src/main/java/org/apache/commons/xml/secure/FallbackIgnoreEntityResolver2.java
+++ 
b/src/main/java/org/apache/commons/xml/secure/FallbackIgnoreEntityResolver2.java
@@ -48,7 +48,7 @@
  * default.
  * </p>
  */
-class FallbackIgnoreEntityResolver2 extends DefaultHandler2 {
+final class FallbackIgnoreEntityResolver2 extends DefaultHandler2 {
 
     private static final byte[] EMPTY = {};
 
@@ -90,12 +90,12 @@ private static String absolutize(final String baseURI, 
final String systemId) {
      *
      * @return The delegate provided by the constructor or set by {@link 
#setDelegate}, may be {@code null}.
      */
-    final EntityResolver getDelegate() {
+    EntityResolver getDelegate() {
         return delegate;
     }
 
     @Override
-    public final InputSource getExternalSubset(final String name, final String 
baseURI) throws SAXException, IOException {
+    public InputSource getExternalSubset(final String name, final String 
baseURI) throws SAXException, IOException {
         // A null return means "no synthetic subset", not "unresolved", 
nothing is fetched.
         return delegate instanceof EntityResolver2 ? ((EntityResolver2) 
delegate).getExternalSubset(name, baseURI) : null;
     }
@@ -124,12 +124,12 @@ protected InputSource onUnresolved(final String name, 
final String publicId, fin
     }
 
     @Override
-    public final InputSource resolveEntity(final String publicId, final String 
systemId) throws SAXException, IOException {
+    public InputSource resolveEntity(final String publicId, final String 
systemId) throws SAXException, IOException {
         return resolveEntity(null, publicId, null, systemId);
     }
 
     @Override
-    public final InputSource resolveEntity(final String name, final String 
publicId, final String baseURI, final String systemId)
+    public InputSource resolveEntity(final String name, final String publicId, 
final String baseURI, final String systemId)
             throws SAXException, IOException {
         final InputSource resolved = resolveWithDelegate(name, publicId, 
baseURI, systemId);
         return resolved != null ? resolved : onUnresolved(name, publicId, 
baseURI, systemId);
@@ -150,7 +150,7 @@ private InputSource resolveWithDelegate(final String name, 
final String publicId
      *
      * @param delegate The caller-supplied resolver, or {@code null} for a 
pure ignore-all floor.
      */
-    final void setDelegate(final EntityResolver delegate) {
+    void setDelegate(final EntityResolver delegate) {
         this.delegate = delegate;
     }
 }

Reply via email to