[
https://issues.apache.org/jira/browse/HBASE-29026?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dávid Paksy updated HBASE-29026:
--------------------------------
Summary: Replace some deprecated calls (was: Replace deprecated calls in
JSP files)
> Replace some deprecated calls
> -----------------------------
>
> Key: HBASE-29026
> URL: https://issues.apache.org/jira/browse/HBASE-29026
> Project: HBase
> Issue Type: Task
> Components: UI
> Affects Versions: 4.0.0-alpha-1
> Reporter: Dávid Paksy
> Assignee: Dávid Paksy
> Priority: Major
> Labels: pull-request-available
>
> While working on https://issues.apache.org/jira/browse/HBASE-28832 I noticed
> that there are several calls to deprecated methods.
> * {{java.net.URLEncoder.encode()}} - Deprecated. The resulting string may
> vary depending on the platform's default encoding. Instead, use the
> encode(String,String) method to specify the encoding.
> * java.net.URLEncoder.encode(String) -> java.net.URLEncoder.encode(String,
> Charset)
> * org.apache.hadoop.util.StringUtils.humanReadableInt(long) ->
> org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix.long2String(long,
> "", 1)
> * org.apache.hadoop.fs.FileSystem.getLength(Path) ->
> getFileStatus(Path).getLen()
> * org.apache.hadoop.hbase.ServerName.getStartcode() ->
> org.apache.hadoop.hbase.ServerName.getStartCode()
> These will not be replaced as we'd need to add commons-text dependency:
>
> * {{org.apache.commons.lang3.StringEscapeUtils.escapeHtml4()}} - Deprecated
> As of 3.6, use Apache Commons Text
> [StringEscapeUtils|https://commons.apache.org/proper/commons-text/javadocs/api-release/org/apache/commons/text/StringEscapeUtils.html]
> instead
> * {{org.apache.commons.lang3.StringEscapeUtils.escapeXml()}} - Deprecated As
> of 3.6, use Apache Commons Text
> [StringEscapeUtils|https://commons.apache.org/proper/commons-text/javadocs/api-release/org/apache/commons/text/StringEscapeUtils.html]
> instead
--
This message was sent by Atlassian Jira
(v8.20.10#820010)