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 358afce  Checkstyle.
358afce is described below

commit 358afce545423cfd5bdb510eee3567e61f71a468
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Sat Jun 27 12:56:34 2020 -0400

    Checkstyle.
---
 src/main/java/org/apache/commons/text/lookup/XmlStringLookup.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 22d3642..de9ae75 100644
--- a/src/main/java/org/apache/commons/text/lookup/XmlStringLookup.java
+++ b/src/main/java/org/apache/commons/text/lookup/XmlStringLookup.java
@@ -72,7 +72,7 @@ final class XmlStringLookup extends AbstractStringLookup {
         }
         final String documentPath = keys[0];
         final String xpath = substringAfter(key, SPLIT_CH);
-        try (final InputStream inputStream = 
Files.newInputStream(Paths.get(documentPath))) {
+        try (InputStream inputStream = 
Files.newInputStream(Paths.get(documentPath))) {
             return XPathFactory.newInstance().newXPath().evaluate(xpath, new 
InputSource(inputStream));
         } catch (final Exception e) {
             throw IllegalArgumentExceptions.format(e, "Error looking up XML 
document [%s] and XPath [%s].",

Reply via email to