Skip to content

Commit

Permalink
AddOrUpdateAnnotationAttribute should also visit nested annotations
Browse files Browse the repository at this point in the history
Fixes #4765
  • Loading branch information
timtebeek committed Dec 10, 2024
1 parent 1095923 commit 3403f7e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public TreeVisitor<?, ExecutionContext> getVisitor() {
return Preconditions.check(new UsesType<>(annotationType, false), new JavaIsoVisitor<ExecutionContext>() {
@Override
public J.Annotation visitAnnotation(J.Annotation a, ExecutionContext ctx) {
J.Annotation original = a;
J.Annotation original = super.visitAnnotation(a, ctx);
if (!TypeUtils.isOfClassType(a.getType(), annotationType)) {
return a;
}
Expand Down

0 comments on commit 3403f7e

Please sign in to comment.