diff --git a/rewrite-java/src/main/java/org/openrewrite/java/internal/template/BlockStatementTemplateGenerator.java b/rewrite-java/src/main/java/org/openrewrite/java/internal/template/BlockStatementTemplateGenerator.java index e6e13c0aff8..e39d37b01ea 100644 --- a/rewrite-java/src/main/java/org/openrewrite/java/internal/template/BlockStatementTemplateGenerator.java +++ b/rewrite-java/src/main/java/org/openrewrite/java/internal/template/BlockStatementTemplateGenerator.java @@ -562,6 +562,8 @@ private void contextTemplate(Cursor cursor, J prior, StringBuilder before, Strin before.insert(0, ev.getName()); } else if (j instanceof J.EnumValueSet) { after.append(";"); + } else if (j instanceof J.Case) { + after.append(";"); } contextTemplate(next(cursor), j, before, after, insertionPoint, REPLACEMENT); }