From 40b77d224ab2aac7e039ef6363d2be7a6b818ea3 Mon Sep 17 00:00:00 2001 From: Tim te Beek Date: Thu, 19 Dec 2024 23:29:12 +0100 Subject: [PATCH] Fix JavaTemplate argument in UpdateAddAnnotatedTypes --- .../java/migrate/jakarta/UpdateAddAnnotatedTypes.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/openrewrite/java/migrate/jakarta/UpdateAddAnnotatedTypes.java b/src/main/java/org/openrewrite/java/migrate/jakarta/UpdateAddAnnotatedTypes.java index 962553896..81102cfcd 100644 --- a/src/main/java/org/openrewrite/java/migrate/jakarta/UpdateAddAnnotatedTypes.java +++ b/src/main/java/org/openrewrite/java/migrate/jakarta/UpdateAddAnnotatedTypes.java @@ -43,7 +43,7 @@ public TreeVisitor getVisitor() { @Override public J.MethodInvocation visitMethodInvocation(J.MethodInvocation method, ExecutionContext ctx) { if (methodInputPattern.matches(method)) { - return JavaTemplate.builder("#{any(jakarta.enterprise.inject.spi.AnnotatedType)}, null\"") + return JavaTemplate.builder("#{any(jakarta.enterprise.inject.spi.AnnotatedType)}, null") .build() .apply(updateCursor(method), method.getCoordinates().replaceArguments(),