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

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

commit 6008dc959f0a67535c0d573b54d83b15260f198a
Author: Emmanuel Bourg <ebo...@apache.org>
AuthorDate: Sat Oct 26 11:11:25 2024 +0200

    Replaced Arrays.asList().stream() with Arrays.stream()
---
 .../java/org/apache/commons/text/lookup/AbstractPathFencedLookup.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/src/main/java/org/apache/commons/text/lookup/AbstractPathFencedLookup.java 
b/src/main/java/org/apache/commons/text/lookup/AbstractPathFencedLookup.java
index 1bc18554..54a94522 100644
--- a/src/main/java/org/apache/commons/text/lookup/AbstractPathFencedLookup.java
+++ b/src/main/java/org/apache/commons/text/lookup/AbstractPathFencedLookup.java
@@ -40,7 +40,7 @@ abstract class AbstractPathFencedLookup extends 
AbstractStringLookup {
      * @param fences The fences guarding Path resolution.
      */
     AbstractPathFencedLookup(final Path... fences) {
-        this.fences = fences != null ? 
Arrays.asList(fences).stream().map(Path::toAbsolutePath).collect(Collectors.toList())
 : Collections.emptyList();
+        this.fences = fences != null ? 
Arrays.stream(fences).map(Path::toAbsolutePath).collect(Collectors.toList()) : 
Collections.emptyList();
     }
 
     /**

Reply via email to