Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.0.0
-
None
Description
`org.apache.commons.lang3.StringEscapeUtils` is deprecated over two years ago at LANG-1316.
/** * <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 {
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.
-import org.apache.commons.lang3.StringEscapeUtils +import org.apache.commons.text.StringEscapeUtils
This will add a new dependency to `hadoop-2.7` profile distribution.
+commons-text-1.6.jar
Attachments
Issue Links
- relates to
-
TEXT-120 StringEscapeUtils#unescapeJson does not unescape double quotes and forward slash
- Resolved
-
TEXT-118 JSON escaping incorrect for the delete control character
- Resolved
-
TEXT-100 StringEscapeUtils#UnEscapeJson doesn't recognize escape signs correctly
- Closed
-
LANG-1316 Deprecate classes/methods moved to commons-text
- Closed
- links to