Files
openide/java/java-tests/testData/inspection/switchExpressionMigration/afterCommentsInside.java
2023-07-21 08:38:34 +00:00

14 lines
267 B
Java

// "Replace with enhanced 'switch' statement" "true-preview"
import java.util.*;
class CommentsInside {
void test(int x) {
switch (x) {
case 0 -> {
// nothing to do
}
case 1 -> System.out.println(x);
}
}
}