mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-06 21:55:38 +07:00
- tests GitOrigin-RevId: 93c130aeac685d8fd9b016d4b5bb8f36482140d3
18 lines
321 B
Java
18 lines
321 B
Java
// "Replace with enhanced 'switch' expression" "false"
|
|
|
|
class SwitchToExpressionWithBreak {
|
|
public int test(Object o) {
|
|
int i;
|
|
sw<caret>itch (o) {
|
|
case String s:
|
|
if (s.length() == 1) {
|
|
break;
|
|
}
|
|
i = 1;
|
|
break;
|
|
default:
|
|
i = 2;
|
|
}
|
|
return i;
|
|
}
|
|
} |