This is an automated email from the ASF dual-hosted git repository.

pjfanning pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/poi.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 6a599570ad Remove dead SchemaFactory-hardening code from 
XSSFExportToXml (#1229)
6a599570ad is described below

commit 6a599570adeaa5b2cd12957bb977e65bdb81d567
Author: PJ Fanning <[email protected]>
AuthorDate: Mon Aug 31 16:28:28 2026 +0100

    Remove dead SchemaFactory-hardening code from XSSFExportToXml (#1229)
    
    The private SecurityFeature functional interface and the trySet helper are
    unreferenced. They date from when this class hardened the SchemaFactory 
itself;
    that logic now lives in XMLHelper.getSchemaFactory(), which XSSFExportToXml
    already uses. No behaviour change.
    
    Co-authored-by: Claude Fable 5 <[email protected]>
---
 .../org/apache/poi/xssf/extractor/XSSFExportToXml.java  | 17 -----------------
 1 file changed, 17 deletions(-)

diff --git 
a/poi-ooxml/src/main/java/org/apache/poi/xssf/extractor/XSSFExportToXml.java 
b/poi-ooxml/src/main/java/org/apache/poi/xssf/extractor/XSSFExportToXml.java
index 2490e58167..ba05b1b769 100644
--- a/poi-ooxml/src/main/java/org/apache/poi/xssf/extractor/XSSFExportToXml.java
+++ b/poi-ooxml/src/main/java/org/apache/poi/xssf/extractor/XSSFExportToXml.java
@@ -81,13 +81,6 @@ import org.xml.sax.SAXException;
 public class XSSFExportToXml implements Comparator<String>{
     private static final Logger LOG = 
PoiLogManager.getLogger(XSSFExportToXml.class);
 
-
-    @FunctionalInterface
-    private interface SecurityFeature {
-        void accept(String name) throws SAXException;
-    }
-
-
     private XSSFMap map;
     private final HashMap<String, Integer> indexMap = new HashMap<>();
     /**
@@ -549,14 +542,4 @@ public class XSSFExportToXml implements Comparator<String>{
         }
         return complexTypeNode;
     }
-
-    private static void trySet(String name, SecurityFeature securityFeature) {
-        try {
-            securityFeature.accept(name);
-        } catch (Exception e) {
-            LOG.atWarn().withThrowable(e).log("SchemaFactory feature ({}) 
unsupported", name);
-        } catch (AbstractMethodError ame) {
-            LOG.atWarn().withThrowable(ame).log("Cannot set SchemaFactory 
feature ({}) because outdated XML parser in classpath", name);
-        }
-    }
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to