You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by nf...@apache.org on 2022/06/24 08:53:56 UTC

[camel] branch main updated: (chores) camel-atmos: use String.join instead of Collectors.joining

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

nfilotto pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new 7e0a1d82661 (chores) camel-atmos: use String.join instead of Collectors.joining
7e0a1d82661 is described below

commit 7e0a1d826616d119cfddc6d24c1966b75aa392df
Author: Nicolas Filotto <nf...@talend.com>
AuthorDate: Fri Jun 24 10:53:21 2022 +0200

    (chores) camel-atmos: use String.join instead of Collectors.joining
---
 .../org/apache/camel/component/atmos/dto/AtmosFileUploadResult.java    | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/components/camel-atmos/src/main/java/org/apache/camel/component/atmos/dto/AtmosFileUploadResult.java b/components/camel-atmos/src/main/java/org/apache/camel/component/atmos/dto/AtmosFileUploadResult.java
index b5c14b838bb..8141ddbc355 100644
--- a/components/camel-atmos/src/main/java/org/apache/camel/component/atmos/dto/AtmosFileUploadResult.java
+++ b/components/camel-atmos/src/main/java/org/apache/camel/component/atmos/dto/AtmosFileUploadResult.java
@@ -17,7 +17,6 @@
 package org.apache.camel.component.atmos.dto;
 
 import java.util.Map;
-import java.util.stream.Collectors;
 
 import org.apache.camel.Exchange;
 import org.apache.camel.component.atmos.util.AtmosConstants;
@@ -45,7 +44,7 @@ public class AtmosFileUploadResult extends AtmosResult {
             });
 
         } else {
-            final String pathsExtracted = map.keySet().stream().collect(Collectors.joining("\n"));
+            final String pathsExtracted = String.join("\n", map.keySet());
 
             exchange.getIn().setHeader(AtmosConstants.UPLOADED_FILES, pathsExtracted);
             exchange.getIn().setBody(map);