mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-05 19:52:07 +07:00
- added support comments right before rules - preserve comments in code blocks GitOrigin-RevId: 5f5123f5d51a0b72cb4ff29c50fbc667fd00e450
19 lines
344 B
Java
19 lines
344 B
Java
// "Replace with old style 'switch' statement" "true"
|
|
|
|
class SwitchExpressionMigration {
|
|
boolean toBoolean(int value) {
|
|
return switch<caret> (value) {
|
|
//t1
|
|
case 0 -> {
|
|
//t2
|
|
yield false;
|
|
}
|
|
//t3
|
|
default -> {
|
|
//t4
|
|
System.out.println("1");
|
|
yield true;
|
|
}
|
|
};
|
|
}
|
|
} |