-
Notifications
You must be signed in to change notification settings - Fork 134
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
prevent using logsafe Args with guava Preconditions #2139
Conversation
Generate changelog in
|
Mind linking me where this came up internally? |
} | ||
} | ||
return Description.NO_MATCH; | ||
} else if (args.size() == 2) { |
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.
It might be cleanest if we merge these branches, allMatch
for zero additional args (args.size() == 2
) appears to do the right thing
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 tried to do that but I couldn't find a way to do it without making the rule more aggressive.
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.
Thoughts on this? #2166
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.
Thanks! I thought I tried that and many tests failed.
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.
one suggestion, otherwise lgtm. Thanks!
###### _excavator_ is a bot for automating changes across repositories. Changes produced by the roomba/latest-baseline-oss check. # Release Notes ## 4.93.0 | Type | Description | Link | | ---- | ----------- | ---- | | Improvement | prevent using logsafe Args with guava Preconditions | palantir/gradle-baseline#2139 | To enable or disable this check, please contact the maintainers of Excavator.
Before this PR
Sometimes the wrong Preconditions is imported. This prevents one such case.
After this PR
==COMMIT_MSG==
prevent using logsafe Args with guava Preconditions
==COMMIT_MSG==
Possible downsides?
None?