mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-07 15:35:40 +07:00
GitOrigin-RevId: 72f8e7f6c9080db7cb0b89c0ed876eb949171e8f
16 lines
333 B
Java
16 lines
333 B
Java
// "Replace with old style 'switch' statement" "true"
|
|
import java.util.*;
|
|
|
|
class SwitchExpressionMigration {
|
|
private void matchingSwitchError(Object obj) {
|
|
int i;
|
|
switch (obj) {
|
|
case String s:
|
|
i = 0;
|
|
break;
|
|
default:
|
|
i = 1;
|
|
break;
|
|
}
|
|
}
|
|
} |