From 2ce482bad31134be5aa55717cfce947d801a8f7a Mon Sep 17 00:00:00 2001 From: lingenj Date: Thu, 19 Dec 2024 14:03:44 +0100 Subject: [PATCH] Add `emptyMapLiteralWithParentheses` --- .../java/org/openrewrite/groovy/tree/MapEntryTest.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/rewrite-groovy/src/test/java/org/openrewrite/groovy/tree/MapEntryTest.java b/rewrite-groovy/src/test/java/org/openrewrite/groovy/tree/MapEntryTest.java index 65bb4a17492..67ee80177cd 100644 --- a/rewrite-groovy/src/test/java/org/openrewrite/groovy/tree/MapEntryTest.java +++ b/rewrite-groovy/src/test/java/org/openrewrite/groovy/tree/MapEntryTest.java @@ -55,6 +55,13 @@ void emptyMapLiteral() { ); } + @Test + void emptyMapLiteralWithParentheses() { + rewriteRun( + groovy("Map m = ([ : ])") + ); + } + @Test void mapAccess() { rewriteRun(