-
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 NameContentEquals
Refaster rule
#1379
Conversation
@@ -67,4 +68,22 @@ String after(String value) { | |||
return Constants.format(value); | |||
} | |||
} | |||
|
|||
/** Prefer {@link Name#contentEquals(CharSequence)} over more verbose alternatives. */ | |||
static final class NameContentEquals { |
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.
We can debate whether BugCheckerRules
is the best place for this rule, but it's in line with other rule definitions in this class.
Looks good. All 2 mutations in this change were killed.
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed. |
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.
🚀 🚀
524ad00
to
ff999de
Compare
Quality Gate passedIssues Measures |
Looks good. All 2 mutations in this change were killed.
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed. |
As also flagged here and here.
Suggested commit message: