You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Dongjoon Hyun (JIRA)" <ji...@apache.org> on 2019/07/28 19:46:00 UTC

[jira] [Created] (SPARK-28549) Use `text.StringEscapeUtils` instead `lang3.StringEscapeUtils`

Dongjoon Hyun created SPARK-28549:
-------------------------------------

             Summary: Use `text.StringEscapeUtils` instead `lang3.StringEscapeUtils`
                 Key: SPARK-28549
                 URL: https://issues.apache.org/jira/browse/SPARK-28549
             Project: Spark
          Issue Type: Improvement
          Components: Spark Core, SQL
    Affects Versions: 3.0.0
            Reporter: Dongjoon Hyun


`org.apache.commons.lang3.StringEscapeUtils` is deprecated over two years ago at LANG-1316.
{code}
/**
 * <p>Escapes and unescapes {@code String}s for
 * Java, Java Script, HTML and XML.</p>
 *
 * <p>#ThreadSafe#</p>
 * @since 2.0
 * @deprecated as of 3.6, use commons-text
 * <a href="https://commons.apache.org/proper/commons-text/javadocs/api-release/org/apache/commons/text/StringEscapeUtils.html">
 * StringEscapeUtils</a> instead
 */
@Deprecated
public class StringEscapeUtils {
{code}

This issue aims to use the latest one from `commons-text` module which has more bug fixes like 
TEXT-100, TEXT-118 and TEXT-120.
{code}
-import org.apache.commons.lang3.StringEscapeUtils
+import org.apache.commons.text.StringEscapeUtils
{code}





--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org