spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dongjoon Hyun (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SPARK-28549) Use `text.StringEscapeUtils` instead `lang3.StringEscapeUtils`
Date Sun, 28 Jul 2019 19:46:00 GMT
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


Mime
View raw message