Debian Codegraph @

javaparser-symbol-solver-testing/src/test/resources/TryInSwitch.java.txt

raw
1 import java.io.File;
2
3 class TryInSwitch {
4
5 public void foo() {
6 int i = 42;
7
8 switch (i) {
9 default:
10 File file;
11 try {
12 file = new File("...");
13 file.delete();
14 } catch (Exception e) {
15 // ...
16 }
17 break;
18 }
19 }
20 }