mirror of
https://github.com/github/codeql.git
synced 2025-12-29 07:06:43 +01:00
17 lines
276 B
Java
17 lines
276 B
Java
class Test {
|
|
void foo(String s) {
|
|
int x = switch(s) {
|
|
case "a", "b" -> 1;
|
|
case "c" -> 2;
|
|
case "d" -> 2;
|
|
default -> 3;
|
|
};
|
|
switch (s) {
|
|
case "a", "b" -> { }
|
|
case "c" -> { }
|
|
case "d" -> { }
|
|
default -> { }
|
|
}
|
|
}
|
|
}
|