[ 
https://issues.apache.org/jira/browse/HBASE-29026?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17921328#comment-17921328
 ] 

Nihal Jain commented on HBASE-29026:
------------------------------------

Pushed to branch-3+. Will merge to appropriate branch-2 once [~paksyd] confirms 
target branches.

> 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
>             Fix For: 3.0.0-beta-2
>
>
> 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 which 
> was decided no to do (see PR):
>  * {{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)

Reply via email to