mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-05 16:36:56 +07:00
19 lines
366 B
Java
19 lines
366 B
Java
public class DuplicateFallThrough {
|
|
|
|
public static void test(int x) {
|
|
switch (x) {
|
|
case 0:
|
|
System.out.println("a");
|
|
case 1:
|
|
System.out.println("b");
|
|
break;
|
|
case 2:
|
|
System.out.println("a");
|
|
case 3:
|
|
System.out.println("c");
|
|
break;
|
|
default:
|
|
System.out.println("d");
|
|
}
|
|
}
|
|
} |