From b3b9af9aacb4a3d8f37646d4ac20aebe6dbf3ca8 Mon Sep 17 00:00:00 2001 From: Tim te Beek Date: Fri, 2 Aug 2024 13:05:18 +0200 Subject: [PATCH] Appease the bot --- .../src/test/java/org/openrewrite/java/JavaTemplateTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 30a34b1d8c6..2fc9859f5a4 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 @@ -1222,14 +1222,15 @@ void replaceMethodInChainFollowedByGenericTypeParameters() { rewriteRun( spec -> spec.recipe(toRecipe(() -> new JavaVisitor<>() { @Override - public J visitMethodInvocation(J.MethodInvocation method, ExecutionContext executionContext) { + public J visitMethodInvocation(J.MethodInvocation method, ExecutionContext ctx) { if (new MethodMatcher("batch.StepBuilder create()").matches(method)) { return JavaTemplate.builder("new StepBuilder()") + //.doBeforeParseTemplate(System.out::println) .contextSensitive() .build() .apply(getCursor(), method.getCoordinates().replace()); } - return super.visitMethodInvocation(method, executionContext); + return super.visitMethodInvocation(method, ctx); } })) .parser(JavaParser.fromJavaVersion().dependsOn(