Skip to content

Commit

Permalink
Call visit with the parent cursor
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek committed Oct 13, 2024
1 parent b0ec28b commit 3587083
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ private <T extends J> T removeLazyCollectionAnnotation(T tree, ExecutionContext
}
//noinspection unchecked
return (T) new RemoveAnnotationVisitor(new AnnotationMatcher("@org.hibernate.annotations.LazyCollection"))
.visit(tree, ctx, getCursor());
.visit(tree, ctx, getCursor().getParentOrThrow());
}
});
}
Expand Down

0 comments on commit 3587083

Please sign in to comment.