mirror of
https://github.com/github/codeql.git
synced 2026-01-01 00:27:24 +01:00
10 lines
140 B
Java
10 lines
140 B
Java
class Test {
|
|
void foo(String s) {
|
|
int x = switch(s) {
|
|
case "a", "b" -> 1;
|
|
case "c" -> 2;
|
|
default -> 3;
|
|
};
|
|
}
|
|
}
|