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] [Updated] (SPARK-28549) Use `text.StringEscapeUtils` instead `lang3.StringEscapeUtils`
Date Sun, 28 Jul 2019 19:49:00 GMT

     [ https://issues.apache.org/jira/browse/SPARK-28549?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Dongjoon Hyun updated SPARK-28549:
----------------------------------
    Description: 
`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 will add a new dependency to `hadoop-2.7` profile distribution.
{code}
+commons-text-1.6.jar
{code}

  was:
`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}




> Use `text.StringEscapeUtils` instead `lang3.StringEscapeUtils`
> --------------------------------------------------------------
>
>                 Key: SPARK-28549
>                 URL: https://issues.apache.org/jira/browse/SPARK-28549
>             Project: Spark
>          Issue Type: Improvement
>          Components: Build, Spark Core, SQL
>    Affects Versions: 3.0.0
>            Reporter: Dongjoon Hyun
>            Priority: Major
>
> `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 will add a new dependency to `hadoop-2.7` profile distribution.
> {code}
> +commons-text-1.6.jar
> {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