Skip to content

Commit

Permalink
Issue checkstyle#8652: Checkstyle fails with unusual annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
nrmancuso committed Aug 11, 2021
1 parent c2aede1 commit 435c93a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Expand Up @@ -1712,6 +1712,7 @@ public DetailAstImpl visitCreator(CheckstyleJavaParser.CreatorContext ctx) {
@Override
public DetailAstImpl visitCreatedNameObject(CheckstyleJavaParser.CreatedNameObjectContext ctx) {
final DetailAstPair currentAST = new DetailAstPair();
DetailAstPair.addAstChild(currentAST, visit(ctx.annotations()));
DetailAstPair.addAstChild(currentAST, visit(ctx.id()));
DetailAstPair.addAstChild(currentAST, visit(ctx.typeArgumentsOrDiamond()));

Expand Down
Expand Up @@ -74,7 +74,8 @@ public class JavaAstVisitorTest {
"visitSuperSuffixSimple",
"visitFieldAccessNoIdent",
"visitClassType",
"visitClassOrInterfaceTypeExtended"
"visitClassOrInterfaceTypeExtended",
"visitQualifiedNameExtended"
);

@Test
Expand Down

0 comments on commit 435c93a

Please sign in to comment.