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-xml.git


The following commit(s) were added to refs/heads/main by this push:
     new b0c6d0a  Use final.
b0c6d0a is described below

commit b0c6d0a3be6d592364206516985cf56d47e379a7
Author: Gary Gregory <[email protected]>
AuthorDate: Tue Jul 7 06:46:35 2026 -0400

    Use final.
---
 src/main/java/org/apache/commons/xml/SaxonProvider.java     | 4 ++--
 src/test/java/org/apache/commons/xml/AttackTestSupport.java | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/main/java/org/apache/commons/xml/SaxonProvider.java 
b/src/main/java/org/apache/commons/xml/SaxonProvider.java
index 7893e4c..e7ea690 100644
--- a/src/main/java/org/apache/commons/xml/SaxonProvider.java
+++ b/src/main/java/org/apache/commons/xml/SaxonProvider.java
@@ -94,7 +94,7 @@ private static XPathFactory configure(final XPathFactory 
factory) {
     static TransformerFactory configure(final TransformerFactory factory) {
         try {
             return SaxonProviderConfigurer.configure(factory);
-        } catch (LinkageError e) {
+        } catch (final LinkageError e) {
             // Unlikely, but protects method execution from missing optional 
dependency
             throw new IllegalStateException(e);
         }
@@ -103,7 +103,7 @@ static TransformerFactory configure(final 
TransformerFactory factory) {
     static XPathFactory configure(final XPathFactory factory) {
         try {
             return SaxonProviderConfigurer.configure(factory);
-        } catch (LinkageError e) {
+        } catch (final LinkageError e) {
             // Unlikely, but protects method execution from missing optional 
dependency
             throw new IllegalStateException(e);
         }
diff --git a/src/test/java/org/apache/commons/xml/AttackTestSupport.java 
b/src/test/java/org/apache/commons/xml/AttackTestSupport.java
index 1afc49e..9b6c07f 100644
--- a/src/test/java/org/apache/commons/xml/AttackTestSupport.java
+++ b/src/test/java/org/apache/commons/xml/AttackTestSupport.java
@@ -782,7 +782,7 @@ static URL resourceUrl(final String name) {
 
     /** Builds a {@link StreamSource} backed by a {@link StringReader} over 
the payload. */
     static StreamSource streamSource(final String xml) {
-        StreamSource streamSource = new StreamSource(new StringReader(xml));
+        final StreamSource streamSource = new StreamSource(new 
StringReader(xml));
         streamSource.setSystemId("test:fixture");
         return streamSource;
     }

Reply via email to