mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-29 13:48:49 +07:00
GitOrigin-RevId: 411e4842d0ecf8cf4db0308f854e179dee46ced3
11 lines
240 B
Java
11 lines
240 B
Java
// "Replace with 'switch' expression" "true-preview"
|
|
import java.util.*;
|
|
|
|
class SwitchExpressionMigration {
|
|
int test(String s) {
|
|
return switch (s) { /*1*/
|
|
default /*2*/ /*3*/ -> 1;
|
|
case "bar" -> 2;
|
|
};
|
|
}
|
|
} |