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
15 lines
327 B
Java
15 lines
327 B
Java
// "Replace with old style 'switch' statement" "true"
|
|
|
|
class SwitchExpressionMigration {
|
|
boolean toBoolean(int value) {
|
|
switch (value) {
|
|
//t1
|
|
case 0://t2
|
|
return false;
|
|
//t3
|
|
default://t4
|
|
System.out.println("1");
|
|
return true;
|
|
}
|
|
}
|
|
} |