Files
Mikhail Pyltsinandintellij-monorepo-bot a16d27ed41 [java-inspections] IDEA-326230 EnhancedSwitchBackwardMigrationInspection supports comments more accurately
- added support comments right before rules
- preserve comments in code blocks

GitOrigin-RevId: 5f5123f5d51a0b72cb4ff29c50fbc667fd00e450
2023-08-11 17:50:09 +00:00

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;
}
}
}