-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HBASE-29026 Replace some deprecated calls #6663
base: branch-2.6
Are you sure you want to change the base?
HBASE-29026 Replace some deprecated calls #6663
Conversation
- Replaced the usage of the following deprecated methods: - java.net.URLEncoder.encode(String) -> java.net.URLEncoder.encode(String, String) - StringUtils.humanReadableInt(long) -> StringUtils.TraditionalBinaryPrefix.long2String(long, "", 1): For this a new static util method is introduced: org.apache.hadoop.hbase.util.Strings.humanReadableInt - org.apache.hadoop.fs.FileSystem.getLength(Path) -> getFileStatus(Path).getLen() - org.apache.hadoop.hbase.ServerName.getStartcode() -> org.apache.hadoop.hbase.ServerName.getStartCode() - Also removed unused imports in the touched JSP files. (cherry picked from commit cc52e79) (cherry picked from commit 332d753)
This is the backport of #6585 to I applied this with cherry-pick. The patch did not apply 100% cleanly so I had to resolve some conflicts manually. The difference in this patch (compared to master) is that we cannot use |
🎊 +1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
(cherry picked from commit 332d753)