Skip to content

Commit

Permalink
Update rewrite-java-test/src/test/java/org/openrewrite/java/JavaTempl…
Browse files Browse the repository at this point in the history
…ateTest.java

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
timtebeek and github-actions[bot] authored Jul 29, 2024
1 parent 10490fc commit 629fb70
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1065,7 +1065,7 @@ public String getDescription() {
public TreeVisitor<?, ExecutionContext> getVisitor() {
return new JavaIsoVisitor<>() {
@Override
public J.ClassDeclaration visitClassDeclaration(J.ClassDeclaration classDecl, ExecutionContext executionContext) {
public J.ClassDeclaration visitClassDeclaration(J.ClassDeclaration classDecl, ExecutionContext ctx) {
JavaTemplate javaTemplate = JavaTemplate.builder("@Deprecated").javaParser(JavaParser.fromJavaVersion()).build();
return javaTemplate.apply(getCursor(), classDecl.getCoordinates().addAnnotation((o1, o2) -> o1.getSimpleName().compareTo(o1.getSimpleName())));
}
Expand Down

0 comments on commit 629fb70

Please sign in to comment.