Fork of the Fernflower decompiler
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
fernflower/testData/results/TestTryCatchFinally.dec

105 lines
1.7 KiB

package pkg;
public class TestTryCatchFinally {
public void test1(String var1) {
try {
System.out.println("sout1");// 24
} catch (Exception var9) {
try {
System.out.println("sout2");// 27
} catch (Exception var8) {// 28
}
} finally {
System.out.println("finally");// 34
}
}// 36
int foo(int var1) throws Exception {
if (var1 < 1) {// 39
throw new RuntimeException();// 40
} else if (var1 < 5) {// 41
return var1;// 42
} else {
throw new Exception();// 45
}
}
public int test(String var1) {
try {
int var2 = Integer.parseInt(var1);// 51
return var2;
} catch (Exception var6) {// 52
System.out.println("Error" + var6);// 53
} finally {
System.out.println("Finally");// 55
}
return -1;// 56 57
}
}
class 'pkg/TestTryCatchFinally' {
method 'test1 (Ljava/lang/String;)V' {
0 5
3 5
5 5
14 8
17 8
19 8
1f 9
2b 12
2d 12
30 12
38 15
}
method 'foo (I)I' {
1 18
2 18
c 19
e 20
f 20
13 21
1b 23
}
method 'test (Ljava/lang/String;)I' {
1 29
4 29
e 30
f 31
10 32
1a 32
23 32
26 32
31 37
34 34
35 34
38 34
3f 37
}
}
Lines mapping:
24 <-> 6
27 <-> 9
28 <-> 10
34 <-> 13
36 <-> 16
39 <-> 19
40 <-> 20
41 <-> 21
42 <-> 22
45 <-> 24
51 <-> 30
52 <-> 32
53 <-> 33
55 <-> 35
56 <-> 38
57 <-> 38
Not mapped:
25
32
35