From c1e8bb6a391e1e9d4ea42ee2cbe1599aaaa34e86 Mon Sep 17 00:00:00 2001 From: Stephan Schroevers Date: Thu, 29 Sep 2022 08:25:13 +0200 Subject: [PATCH] `s/Unexpected declaration/Unexpected token/` --- .../errorprone/refaster/test/RefasterTemplateCollection.java | 3 +-- .../refaster/test/MisnamedTestClassTemplatesTestOutput.java | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) 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. */ ;