-
Notifications
You must be signed in to change notification settings - Fork 5
Replace HumanReadableByteCount getSize/getUnit with more obvious map(func)
#286
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
This makes it obvious that the values must be used together.
Generate changelog in
|
getSize/getUnit with more obvious map(func)`getSize/getUnit with more obvious map(func)
| * | ||
| * @deprecated in favor of {@link #map(SizeFunction)} which is harder to misuse. | ||
| */ | ||
| @DoNotCall |
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.
Will this fail the build for people? Do we need to write a migration for them?
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.
Yes, but it won’t cause transitive failures. The problem with a migration is that it won’t fix incorrect uses.
jkozlowski
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.
Happy to approve
|
Thanks @carterkozak , this should be more resilient to potential misuse |
|
Released 1.4.0 |
This makes it obvious that the values must be used together.
==COMMIT_MSG==
Replace HumanReadableByteCount
getSize/getUnitwith more obviousmap(func)==COMMIT_MSG==
Possible downsides?
API churn
Alternatives?