-
Notifications
You must be signed in to change notification settings - Fork 41.5k
Simplify code #18166
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
Simplify code #18166
Conversation
@gaohanghang Please sign the Contributor License Agreement! Click here to manually synchronize the status of this Pull Request. See the FAQ for frequently asked questions. |
@gaohanghang Thank you for signing the Contributor License Agreement! |
@gaohanghang Thank you for the PR. In order to reduce the noise of notification, please run the build locally and fix violations before submitting rather than relying on our CI to detect them. |
Sorry, thank you for your suggestion. |
@@ -232,7 +232,6 @@ private static void logTo(Log log, LogLevel level, Object message, Throwable thr | |||
return; | |||
case FATAL: | |||
log.fatal(message, throwable); | |||
return; |
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.
I'd prefer to leave this in for consistency with the other statements. The other changes look like nice improvements. Thanks!
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.
👌Thank you for code review.
Math.max()
and lambda expression simplify some code.Long.parseLong()
replaceLong.valueOf()