mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-05 23:46:49 +07:00
11 lines
209 B
Java
11 lines
209 B
Java
// "Replace with old style 'switch' statement" "true"
|
|
import java.util.*;
|
|
|
|
class SwitchExpressionMigration {
|
|
int foo(int n) {
|
|
return switch<caret> (n) {
|
|
case -> 12;
|
|
default -> 0;
|
|
};
|
|
}
|
|
} |