mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-31 21:28:11 +07:00
GitOrigin-RevId: fe4e2187916c721211c6ed9d7c1f1456fcf2d817
14 lines
267 B
Java
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);
|
|
}
|
|
}
|
|
} |