-
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
promote PreferCommonAnnotations to WARNING #2962
base: develop
Are you sure you want to change the base?
Conversation
Generate changelog in
|
severity = SeverityLevel.WARNING) | ||
public final class PreferCommonAnnotations extends BugChecker implements ImportTreeMatcher { |
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.
imports can't be suppressed using @SuppressedWarnings
, so this cannot be auto-suppressed. If it had an autofix that worked every time, it would be fine to make this error level. But I don't think this works every time as repos may not have guava as an import (that said, we could make this a "ConditionalPatchCheck" on the presence of guava, which should make it safe).
I don't actually know how suppressible-error-prone behaves with errors on imports - maybe try running this on an internal repo using maven local and see what happens.
Before this PR
Check introduced in #2505. SeverityLevel.SUGGESTION makes it easy to miss.
After this PR
==COMMIT_MSG==
promote PreferCommonAnnotations to WARNING
==COMMIT_MSG==
Possible downsides?