From 629fb703c93e2ef12091a13f146258e1357066d3 Mon Sep 17 00:00:00 2001 From: Tim te Beek Date: Mon, 29 Jul 2024 14:39:18 +0200 Subject: [PATCH] Update rewrite-java-test/src/test/java/org/openrewrite/java/JavaTemplateTest.java Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- .../src/test/java/org/openrewrite/java/JavaTemplateTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rewrite-java-test/src/test/java/org/openrewrite/java/JavaTemplateTest.java b/rewrite-java-test/src/test/java/org/openrewrite/java/JavaTemplateTest.java index 5a0d349b0ff..c15afcad690 100755 --- a/rewrite-java-test/src/test/java/org/openrewrite/java/JavaTemplateTest.java +++ b/rewrite-java-test/src/test/java/org/openrewrite/java/JavaTemplateTest.java @@ -1065,7 +1065,7 @@ public String getDescription() { public TreeVisitor 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()))); }