mirror of
https://github.com/github/codeql.git
synced 2026-04-28 02:05:14 +02:00
Convert test to use an anonymous local
This commit is contained in:
@@ -14,7 +14,7 @@ class Test {
|
||||
}
|
||||
int len = s.length();
|
||||
switch (s) {
|
||||
case String s2 when len == 4 -> { }
|
||||
case String _ when len == 4 -> { }
|
||||
case "e" -> { }
|
||||
default -> { }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user