mirror of
https://github.com/github/codeql.git
synced 2026-03-29 11:48:16 +02: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;
|
|
};
|
|
}
|
|
}
|