Rewrite buildDescription(tree).addFix(fix).build()
to describeMatch(tree, fix)
#369
Open
1 of 2 tasks
Labels
Problem
In commit google/error-prone@570f0bf the
DescribeMatch
BugChecker
got removed from Error Prone with the explanation that it got ported to Refaster. As we cannot see these kind of changes, we have to write these Refaster rules ourselves 😄.Description of the proposed new feature
I would like to rewrite the following code:
to:
Considerations
In the test code of the deleted
BugChecker
there is an edge case where it shouldn't propose a fix in theabstract class BugChecker {
itself. However, to be honest, I don't think we need to take this case into account.We might need to introduce a new Refaster rule collection for this Refaster rule or list it under
AssortedRules
.The text was updated successfully, but these errors were encountered: