From 0e0fff7d53b996427b3acb3ff7f0559b0854d208 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 cacfc3e4b75..e3d6f3567ee 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 a5741167de9..12e3ba161dc 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. */ ;