mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-05 23:46:49 +07:00
- added support comments right before rules - preserve comments in code blocks GitOrigin-RevId: 5f5123f5d51a0b72cb4ff29c50fbc667fd00e450
18 lines
400 B
Java
18 lines
400 B
Java
// "Replace with old style 'switch' statement" "true"
|
|
import java.util.*;
|
|
|
|
class SwitchExpressionMigration {
|
|
private static String m(int n) {
|
|
switch (n +/*cond*/ n) {
|
|
/*1*/
|
|
/*case*/
|
|
case 1:
|
|
System.out.println("a"/*2*/);
|
|
break;
|
|
/*3*/
|
|
case 2:
|
|
System.out.println("b");
|
|
break;
|
|
}
|
|
}
|
|
} |