diff --git a/refaster-test-support/src/main/java/tech/picnic/errorprone/refaster/test/RefasterTemplateCollection.java b/refaster-test-support/src/main/java/tech/picnic/errorprone/refaster/test/RefasterTemplateCollection.java index cacfc3e4b7..e3d6f3567e 100644 --- a/refaster-test-support/src/main/java/tech/picnic/errorprone/refaster/test/RefasterTemplateCollection.java +++ b/refaster-test-support/src/main/java/tech/picnic/errorprone/refaster/test/RefasterTemplateCollection.java @@ -169,8 +169,7 @@ private void reportIncorrectClassName(CompilationUnitTree tree, VisitorState sta state.reportMatch( describeMatch( typeDeclaration, - SuggestedFix.prefixWith( - typeDeclaration, "/* ERROR: Unexpected declaration. */\n"))); + SuggestedFix.prefixWith(typeDeclaration, "/* ERROR: Unexpected token. */\n"))); } } } diff --git a/refaster-test-support/src/test/resources/tech/picnic/errorprone/refaster/test/MisnamedTestClassTemplatesTestOutput.java b/refaster-test-support/src/test/resources/tech/picnic/errorprone/refaster/test/MisnamedTestClassTemplatesTestOutput.java index a5741167de..12e3ba161d 100644 --- a/refaster-test-support/src/test/resources/tech/picnic/errorprone/refaster/test/MisnamedTestClassTemplatesTestOutput.java +++ b/refaster-test-support/src/test/resources/tech/picnic/errorprone/refaster/test/MisnamedTestClassTemplatesTestOutput.java @@ -9,5 +9,5 @@ boolean testStringIsEmpty() { } // This is a comment to appease Checkstyle. -/* ERROR: Unexpected declaration. */ +/* ERROR: Unexpected token. */ ;