Skip to content

Commit 6efa431

Browse files
noValuesJustSemicolon (#474)
1 parent e3aa6ba commit 6efa431

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/test/java/org/openrewrite/staticanalysis/RemoveExtraSemicolonsTest.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,4 +247,19 @@ void test() {
247247
)
248248
);
249249
}
250+
251+
@Test
252+
@Issue("https://github.com/openrewrite/rewrite/issues/5146")
253+
void noValuesJustSemicolon() {
254+
rewriteRun(
255+
java(
256+
"""
257+
public enum A {
258+
;
259+
public static final String X = "receipt-id";
260+
}
261+
"""
262+
)
263+
);
264+
}
250265
}

0 commit comments

Comments
 (0)