-
Notifications
You must be signed in to change notification settings - Fork 9.2k
HADOOP-17138. Fix spotbugs warnings surfaced after upgrade to 4.0.6. #2806
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
…pache#2155) (cherry picked from commit 1b29c9b)
|
There are some spotbugs warnings in #2800. As branch-3.2 uses spotbugs after HADOOP-16870, we need to backport HADOOP-17138 to branch-3.2. |
| if (count == null) { | ||
| count = 1; | ||
| } else { | ||
| count++; |
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.
Dead local store?
Can someone educate me on why this is an issue?
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.
This change is a workaround for the bug of the javac compiler.
spotbugs/spotbugs#571 (comment)
|
💔 -1 overall
This message was automatically generated. |
|
Thanks for your review, @aajisaka. The failed tests succeeded in my local environment. |
…(#2155)
(cherry picked from commit 1b29c9b)
NOTICE
Please create an issue in ASF JIRA before opening a pull request,
and you need to set the title of the pull request which starts with
the corresponding JIRA issue number. (e.g. HADOOP-XXXXX. Fix a typo in YYY.)
For more details, please see https://cwiki.apache.org/confluence/display/HADOOP/How+To+Contribute