Skip to content

Commit

Permalink
s/Unexpected declaration/Unexpected token/
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan202 committed Sep 29, 2022
1 parent 0a23f9f commit c1e8bb6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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")));
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ boolean testStringIsEmpty() {
}

// This is a comment to appease Checkstyle.
/* ERROR: Unexpected declaration. */
/* ERROR: Unexpected token. */
;

0 comments on commit c1e8bb6

Please sign in to comment.