You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by dk...@apache.org on 2020/02/25 13:39:49 UTC

[sling-org-apache-sling-app-cms] 02/02: Updating to use commons-text not commons-lang for string substitution

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

dklco pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-app-cms.git

commit c9489f2f19f13aa5da6c15c3c8f7b29fb1a68965
Author: Dan Klco <dk...@apache.org>
AuthorDate: Tue Feb 25 08:39:27 2020 -0500

    Updating to use commons-text not commons-lang for string substitution
---
 .../cms/reference/forms/impl/actions/UserGeneratedContentAction.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/reference/src/main/java/org/apache/sling/cms/reference/forms/impl/actions/UserGeneratedContentAction.java b/reference/src/main/java/org/apache/sling/cms/reference/forms/impl/actions/UserGeneratedContentAction.java
index 4292917..0007717 100644
--- a/reference/src/main/java/org/apache/sling/cms/reference/forms/impl/actions/UserGeneratedContentAction.java
+++ b/reference/src/main/java/org/apache/sling/cms/reference/forms/impl/actions/UserGeneratedContentAction.java
@@ -21,7 +21,7 @@ import java.util.Collections;
 import java.util.HashMap;
 import java.util.Map;
 
-import org.apache.commons.lang3.text.StrSubstitutor;
+import org.apache.commons.text.StringSubstitutor;
 import org.apache.commons.lang3.tuple.ImmutablePair;
 import org.apache.jackrabbit.JcrConstants;
 import org.apache.sling.api.resource.PersistenceException;
@@ -69,7 +69,7 @@ public class UserGeneratedContentAction implements FormAction {
             bucketConfig.setPathDepth(properties.get("pathDepth", 0));
 
             log.debug("Creating UGC at with configuration:  {}", bucketConfig);
-            StrSubstitutor sub = new StrSubstitutor(request.getFormData());
+            StringSubstitutor sub = new StringSubstitutor(request.getFormData());
 
             Map<String, Object> contentProperties = new HashMap<>();
             contentProperties.put(JcrConstants.JCR_PRIMARYTYPE, JcrConstants.NT_UNSTRUCTURED);