decompiler: fixed line mapping in try-catch block
[idea/community.git] / plugins / java-decompiler / engine / testData / src / pkg / TestClassSimpleBytecodeMapping.java
1 package pkg;
2
3 import java.lang.Override;
4 import java.lang.Runnable;
5
6 public class TestClassSimpleBytecodeMapping {
7
8   public TestClassSimpleBytecodeMapping() {}
9   
10   public int test() {
11     
12     System.out.println("before");
13
14     run(new Runnable() {
15       @Override
16       public void run() {
17         System.out.println("Runnable");
18       }
19     });
20
21     test2("1");
22
23     if(Math.random() > 0) {
24       System.out.println("0");
25       return 0;
26     } else {
27       System.out.println("1");
28       return 1;
29     }
30   }
31
32   public void test2(String a) {
33     try {
34       Integer.parseInt(a);
35     } catch (Exception e) {
36       System.out.println(e);
37     } finally {
38       System.out.println("Finally");
39     }
40   }
41
42   public class InnerClass {
43     public void print() {
44       System.out.println("Inner");
45     }
46   }
47
48   void run(Runnable r) {
49     r.run();
50   }
51
52   public class InnerClass2 {
53     public void print() {
54       System.out.println("Inner2");
55     }
56   }
57 }