-
Notifications
You must be signed in to change notification settings - Fork 38.7k
Remove unnecessary assignments #25318
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
While we do not usually assign Thanks for reaching out, in any case :-) |
Why do not assign |
Oops I was missing that part of your case here; I thought it was just about explicit |
To be clear, the default value of the enforce flag is Well spotted, thanks for pointing this out! |
And I review the PR Remove redundant assignment of default values to volatile fields #25261, the result of the benchmark test shows that use the default value is faster. If necessary, I can change JavaDoc too. If you must change the code and doc elsewhere, please go ahead. |
That PR was about default values for The explanation for the adapted |
The setting methods of the two fields declare that the default value is
false
. So, maybe the assignments should be removed.