aboutsummaryrefslogtreecommitdiffstats
path: root/sliPluginUtils
diff options
context:
space:
mode:
authorSingal, Kapil (ks220y) <ks220y@att.com>2020-02-17 17:46:59 -0500
committerSingal, Kapil (ks220y) <ks220y@att.com>2020-02-17 17:46:59 -0500
commit7c2f57f8efc971f1d93a544256c084f52f7c3ed2 (patch)
tree96121599bb206d4f44933b7686ec17bca1b2c041 /sliPluginUtils
parent599315984b449ca05f00b35037a103f1dc335030 (diff)
Refactoring deprecated lang3.StringEscapeUtils
Replace deprecated org.apache.commons.lang3.StringEscapeUtils with org.apache.commons.text.StringEscapeUtils Change-Id: Ib0303919d883a577effbb6fa15ddeb289cb936fc Issue-ID: CCSDK-2104 Signed-off-by: Singal, Kapil (ks220y) <ks220y@att.com>
Diffstat (limited to 'sliPluginUtils')
-rw-r--r--sliPluginUtils/provider/src/main/java/org/onap/ccsdk/sli/core/slipluginutils/SliStringUtils.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/sliPluginUtils/provider/src/main/java/org/onap/ccsdk/sli/core/slipluginutils/SliStringUtils.java b/sliPluginUtils/provider/src/main/java/org/onap/ccsdk/sli/core/slipluginutils/SliStringUtils.java
index d343ce25..fdc057b2 100644
--- a/sliPluginUtils/provider/src/main/java/org/onap/ccsdk/sli/core/slipluginutils/SliStringUtils.java
+++ b/sliPluginUtils/provider/src/main/java/org/onap/ccsdk/sli/core/slipluginutils/SliStringUtils.java
@@ -27,7 +27,7 @@ import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.net.URLEncoder;
import java.util.Map;
-import org.apache.commons.lang3.StringEscapeUtils;
+import org.apache.commons.text.StringEscapeUtils;
import org.apache.commons.lang3.StringUtils;
import org.onap.ccsdk.sli.core.sli.SvcLogicContext;
import org.onap.ccsdk.sli.core.sli.SvcLogicException;
@@ -334,7 +334,7 @@ public class SliStringUtils implements SvcLogicJavaPlugin {
ctx.setAttribute(parameters.get("outputPath"), parameters.get(INPUT_PARAM_SOURCE)
.replaceAll(parameters.get(INPUT_PARAM_TARGET), parameters.get("replacement")));
}
-
+
/**
* Provides substring functionality to Directed Graphs.
* <p>
@@ -456,7 +456,7 @@ public class SliStringUtils implements SvcLogicJavaPlugin {
public static void xmlEscapeText(Map<String, String> inParams, SvcLogicContext ctx) {
String source = inParams.get(INPUT_PARAM_SOURCE);
String target = inParams.get(INPUT_PARAM_TARGET);
- source = StringEscapeUtils.escapeXml(source);
+ source = StringEscapeUtils.escapeXml10(source);
ctx.setAttribute(target, source);
}