mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-01 12:50:56 +07:00
14 lines
243 B
Java
14 lines
243 B
Java
// "Replace 'switch' with 'if'" "true-preview"
|
|
class Precedence {
|
|
|
|
void m() {
|
|
int a = 10;
|
|
switch<caret>(a & 1) {
|
|
case 0:
|
|
System.out.println("0");
|
|
break;
|
|
case 1:
|
|
System.out.println("1");
|
|
}
|
|
}
|
|
} |