diff --git a/src/main/java/org/openrewrite/java/migrate/lang/var/UseVarForObject.java b/src/main/java/org/openrewrite/java/migrate/lang/var/UseVarForObject.java index f067c58d39..e79094495f 100644 --- a/src/main/java/org/openrewrite/java/migrate/lang/var/UseVarForObject.java +++ b/src/main/java/org/openrewrite/java/migrate/lang/var/UseVarForObject.java @@ -58,7 +58,7 @@ public TreeVisitor getVisitor() { static final class UseVarForObjectVisitor extends JavaIsoVisitor { - private final JavaTemplate template = JavaTemplate.builder("var #{} = #{any()}") + private final JavaTemplate template = JavaTemplate.builder("var #{} = #{any()};") .contextSensitive() .javaParser(JavaParser.fromJavaVersion()).build();