You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by il...@apache.org on 2022/03/08 10:39:32 UTC
[syncope] branch master updated: Preferring Collectors#joining
This is an automated email from the ASF dual-hosted git repository.
ilgrosso pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/syncope.git
The following commit(s) were added to refs/heads/master by this push:
new 9ee8f41 Preferring Collectors#joining
9ee8f41 is described below
commit 9ee8f4142eea695886442a92fba7f2d6794f0f00
Author: Francesco Chicchiriccò <il...@apache.org>
AuthorDate: Tue Mar 8 11:39:19 2022 +0100
Preferring Collectors#joining
---
.../syncope/core/provisioning/api/jexl/SyncopeJexlFunctions.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/jexl/SyncopeJexlFunctions.java b/core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/jexl/SyncopeJexlFunctions.java
index b2a566a..8fcfa2d 100644
--- a/core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/jexl/SyncopeJexlFunctions.java
+++ b/core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/jexl/SyncopeJexlFunctions.java
@@ -21,6 +21,7 @@ package org.apache.syncope.core.provisioning.api.jexl;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
+import java.util.stream.Collectors;
import org.apache.commons.lang3.StringUtils;
/**
@@ -60,6 +61,6 @@ public class SyncopeJexlFunctions {
List<String> headless = Arrays.asList(fullPathSplitted).subList(1, fullPathSplitted.length);
Collections.reverse(headless);
- return prefix + attr + '=' + StringUtils.join(headless, ',' + attr + '=');
+ return prefix + attr + "=" + headless.stream().collect(Collectors.joining("," + attr + "="));
}
}