Skip to content

Commit 190e452

Browse files
cushonError Prone Team
authored andcommitted
Deprecate AST_MATCH
PiperOrigin-RevId: 892308248
1 parent 6308f64 commit 190e452

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

test_helpers/src/main/java/com/google/errorprone/BugCheckerRefactoringTestHelper.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,12 @@ private String maybeFormat(String input, boolean allowFormattingErrors) {
120120
}
121121
}
122122
},
123+
/**
124+
* @deprecated prefer {@link #TEXT_MATCH}, which formats the actual and expected output to be
125+
* lenient of whitespace differences. {@link #AST_MATCH} will ignore differences in
126+
* comments, and may miss other differences that aren't detectable in the AST.
127+
*/
128+
@Deprecated
123129
AST_MATCH {
124130
@Override
125131
void verifyMatch(

0 commit comments

Comments
 (0)