We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca43b96 commit e94c5a7Copy full SHA for e94c5a7
java/ql/test/query-tests/Nullness/G.java
@@ -14,7 +14,7 @@ public static void test(String s) {
14
15
switch(s) { // BAD; lack of a null case means this may throw.
16
case "foo" -> System.out.println("Foo");
17
- default -> System.out.println("Something else");
+ case String s2 -> System.out.println("Other string of length " + s2.length());
18
}
19
20
0 commit comments