-
Notifications
You must be signed in to change notification settings - Fork 9.2k
YARN-10491: Fix deprecation warnings in SLSWebApp.java #2519
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
Conversation
|
💔 -1 overall
This message was automatically generated. |
| @Unstable | ||
| public class SLSWebApp extends HttpServlet { | ||
| private static final long serialVersionUID = 1905162041950251407L; | ||
| private static final Charset UTF8 = Charset.forName("UTF-8"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you use Charset.forName(String), you need to catch some exceptions. We can avoid catching exceptions by using StandardCharsets.UTF-8.
|
💔 -1 overall
This message was automatically generated. |
|
Hey @aajisaka, Thank you for your review. As suggested, I have added Thanks! |
|
💔 -1 overall
This message was automatically generated. |
This reverts commit 6836462.
hadoop-tools/hadoop-sls/src/main/java/org/apache/hadoop/yarn/sls/web/SLSWebApp.java
Outdated
Show resolved
Hide resolved
|
Hey @aajisaka, Suggested change has been done. Thank you for the review. |
|
🎊 +1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
aajisaka
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
TestAMSimulator: https://issues.apache.org/jira/browse/YARN-9843 |
|
Hey @szilard-nemeth, Can you please review this? |
Signed-off-by: Akira Ajisaka <[email protected]> (cherry picked from commit aaf9e3d)
Signed-off-by: Akira Ajisaka <[email protected]> (cherry picked from commit aaf9e3d)
Signed-off-by: Akira Ajisaka <[email protected]> (cherry picked from commit aaf9e3d)
What? :: Fix deprecation warnings in SLSWebApp.java & TestSLSWebApp.java
toString(URI uri) Deprecated.
readFileToString(File file) Deprecated.
@aajisaka Can you please review this?
Thanks!