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

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-text.git


The following commit(s) were added to refs/heads/master by this push:
     new 2e2d4bc9 Revert "Bump actions/setup-java from 5.0.0 to 5.1.0"
2e2d4bc9 is described below

commit 2e2d4bc90f1b3274e7943ac27d037d47c0cc098d
Author: Gary Gregory <[email protected]>
AuthorDate: Thu Dec 4 07:43:20 2025 -0500

    Revert "Bump actions/setup-java from 5.0.0 to 5.1.0"
    
    This reverts commit b0ddbd17bbeee12ad33b8a61c60b4edbe6c85838.
---
 .github/workflows/maven.yml                                       | 2 +-
 src/main/java/org/apache/commons/text/lookup/XmlStringLookup.java | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index 30ddf451..d2aef55f 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -38,7 +38,7 @@ jobs:
       with:
         persist-credentials: false
     - name: Set up JDK ${{ matrix.java }}
-      uses: actions/setup-java@f2beeb24e141e01a676f977032f5a29d81c9e27e # 
v5.1.0
+      uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # 
v5.0.0
       with:
         distribution: 'temurin'
         java-version: ${{ matrix.java }}
diff --git a/src/main/java/org/apache/commons/text/lookup/XmlStringLookup.java 
b/src/main/java/org/apache/commons/text/lookup/XmlStringLookup.java
index 8f129396..85747eeb 100644
--- a/src/main/java/org/apache/commons/text/lookup/XmlStringLookup.java
+++ b/src/main/java/org/apache/commons/text/lookup/XmlStringLookup.java
@@ -138,14 +138,14 @@ final class XmlStringLookup extends 
AbstractPathFencedLookup {
             for (final Entry<String, Boolean> p : 
xmlFactoryFeatures.entrySet()) {
                 dbFactory.setFeature(p.getKey(), p.getValue());
             }
-            //dbFactory.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, 
secure);
+            dbFactory.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, 
secure);
             try (InputStream inputStream = 
Files.newInputStream(getPath(documentPath))) {
                 final Document doc = 
dbFactory.newDocumentBuilder().parse(inputStream);
                 final XPathFactory xpFactory = XPathFactory.newInstance();
                 for (final Entry<String, Boolean> p : 
xPathFactoryFeatures.entrySet()) {
                     xpFactory.setFeature(p.getKey(), p.getValue());
                 }
-                //xpFactory.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, 
secure);
+                xpFactory.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, 
secure);
                 return xpFactory.newXPath().evaluate(xpath, doc);
             }
         } catch (final Exception e) {

Reply via email to