-
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
StaticImport: add com.google.errorprone.BugPattern.{LinkType,SeverityLevel,StandardTags}
#34
StaticImport: add com.google.errorprone.BugPattern.{LinkType,SeverityLevel,StandardTags}
#34
Conversation
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.
Nothing from my side except: Nice!
Suggested commit message:
Not sure about the term "fields" here, as the fields are nested in |
To be specific: `LinkType`, `SeverityLevel`, and `StandardTags`.
c0ed971
to
ec88b8a
Compare
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.
Rebased and added a small commit. Alternative suggested commit message:
Require static import of `BugPattern.{LinkType,ServerityLevel,StandardTags}` members (#34)
// XXX: Enable this test for all JREs once https://github.com/google/error-prone/pull/2820 is | ||
// merged and released. | ||
@Test | ||
@DisabledForJreRange(min = JRE.JAVA_12) | ||
@Test | ||
void replacement() { |
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.
Would leave this change out; once we enable annotation ordering we might actually add an exemption for these two.
" final class Test {}", | ||
"", | ||
" @BugPattern(", | ||
" name = \"TestBugChecker\",", |
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.
In anticipation of upcoming changes we can already omit the word Checker
here and from the class name. (And after upgrading Error Prone we can omit the name
attribute.)
Changes LGTM! |
No description provided.