-
Notifications
You must be signed in to change notification settings - Fork 39
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
Introduce ImmutableMapCopyOfMapsFilter{Keys,Values}
Refaster rules
#517
Conversation
Looks good. No mutations were possible for these changes. |
* Prefer {@link Maps#filterKeys(Map, Predicate)} over streaming entries of a map and filtering | ||
* the keys. | ||
*/ | ||
abstract static class ImmutableMapFilterKeys<K, V> { |
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.
Those could be higher in the file 🤔
Didn't find an obvious candidate.
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.
Tnx! Indeed inside Picnic we generally prefer the alternative. Added a commit with some tweaks. Suggested commit message:
Introduce `ImmutableMapCopyOfMapsFilter{Keys,Values}` Refaster rules (#517)
Looks good. No mutations were possible for these changes. |
Thanks @Stephan202 for the suggestions 💪 |
Looks good. No mutations were possible for these changes. |
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.
Changes LGTM! Added a commit to drop a now obsolete comment :).
Again, nice improvements @Ptijohn, thanks for picking up! 🚀
Looks good. No mutations were possible for these changes. |
1 similar comment
Looks good. No mutations were possible for these changes. |
913f377
to
f2a961d
Compare
Rebased, will merge once 🟢! |
Looks good. No mutations were possible for these changes. |
Changes LGTM :) |
ImmutableMapFilter{Keys,Values}
Refaster rulesImmutableMapCopyOfMapsFilter{Keys,Values}
Refaster rules
Hesitated for a sec to also cover
FilterEntries
, but I reckon this has less usages and will somehow conflict withFilterValues
andFilterKeys
, so I left it out.Suggested commit message: