mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-06 01:06:54 +07:00
14 lines
291 B
Java
14 lines
291 B
Java
// "Replace with 'switch' expression" "true"
|
|
import java.util.*;
|
|
|
|
class SwitchExpressionMigration {
|
|
private static void m() {
|
|
int result;
|
|
switch<caret>(s) {
|
|
case "c":
|
|
case "a": result = 1; break;
|
|
case "b": result = 2; break;
|
|
default: result = 0;
|
|
}
|
|
}
|
|
} |