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