Skip to content

Commit

Permalink
Remove uses of J.ClassDeclaration#getAnnotations()
Browse files Browse the repository at this point in the history
This is also covered by `J.ClassDeclaration#getPadding()`
  • Loading branch information
knutwannheden committed May 7, 2024
1 parent e25664d commit 46bc494
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -425,9 +425,9 @@ public J visitClassDeclaration(J.ClassDeclaration classDecl, PrintOutputCapture<
beforeSyntax(classDecl, Space.Location.CLASS_DECLARATION_PREFIX, p);
visitSpace(Space.EMPTY, Space.Location.ANNOTATIONS, p);
visit(classDecl.getLeadingAnnotations(), p);
visit(classDecl.getAnnotations().getKind().getAnnotations(), p);
visit(classDecl.getPadding().getKind().getAnnotations(), p);
visitSpace(
reindentPrefix(classDecl.getAnnotations().getKind().getPrefix()),
reindentPrefix(classDecl.getPadding().getKind().getPrefix()),
Space.Location.CLASS_KIND,
p
);
Expand Down

0 comments on commit 46bc494

Please sign in to comment.