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

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