Skip to content
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

same fixes as yesterday #621

Merged
merged 1 commit into from
Nov 2, 2021
Merged

same fixes as yesterday #621

merged 1 commit into from
Nov 2, 2021

Conversation

sheepdreamofandroids
Copy link
Contributor

for #7 (comment)

made more fields final
applied google formatter
gave the tests more slack to also succeed consistently on Windows 10

made more fields final
applied google formatter
gave the tests more slack to also succeed consistently on Windows 10
Comment on lines +165 to +166
assert maxLoadSize > 0;
assert maxDelay > 0;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

purely fun fyi, but assert lost favor in Java's core libs where it used to be popular. This is because it increased the bytecode size compared to a regular check, which increased the chance for a method to exceed the inlining cliff (35 bytes). The keyword used to be used liberally in j.u.c., if I recall correctly, when originally written to favor readability. It was stripped out a few releases later when maximizing for performance instead.

@ben-manes ben-manes merged commit 9796060 into ben-manes:master Nov 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants