This is an automated email from the ASF dual-hosted git repository.
ilgrosso pushed a commit to branch 2_1_X
in repository https://gitbox.apache.org/repos/asf/syncope.git
The following commit(s) were added to refs/heads/2_1_X by this push:
new a74fbf9 Preferring Collectors#joining
a74fbf9 is described below
commit a74fbf96395b64638a33960315c1d86da6fe701f
Author: Francesco Chicchiriccò <[email protected]>
AuthorDate: Tue Mar 8 11:38:02 2022 +0100
Preferring Collectors#joining
---
.../syncope/core/provisioning/api/jexl/SyncopeJexlFunctions.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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 9ec0b05..a4b47c6 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;
/**
@@ -62,7 +63,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 + "="));
}
-
}