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 b0ddbd17 Bump actions/setup-java from 5.0.0 to 5.1.0
b0ddbd17 is described below
commit b0ddbd17bbeee12ad33b8a61c60b4edbe6c85838
Author: Gary Gregory <[email protected]>
AuthorDate: Thu Dec 4 07:42:57 2025 -0500
Bump actions/setup-java from 5.0.0 to 5.1.0
---
.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 d2aef55f..30ddf451 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@dded0888837ed1f317902acf8a20df0ad188d165 #
v5.0.0
+ uses: actions/setup-java@f2beeb24e141e01a676f977032f5a29d81c9e27e #
v5.1.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 85747eeb..8f129396 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) {