decompiler: map dummy return line to the method closing bracket

This commit is contained in:
Egor.Ushakov
2015-03-24 17:56:33 +03:00
parent 07e1d66a53
commit 500f8b12d8
34 changed files with 565 additions and 128 deletions

View File

@@ -6,7 +6,7 @@ public class TestClassSimpleBytecodeMapping {
this.run(new Runnable() {// 14
public void run() {
System.out.println("Runnable");// 17
}
}// 18
});
this.test2("1");// 21
if(Math.random() > 0.0D) {// 23
@@ -27,22 +27,22 @@ public class TestClassSimpleBytecodeMapping {
System.out.println("Finally");// 38
}
}
}// 40
void run(Runnable var1) {
var1.run();// 49
}
}// 50
public class InnerClass2 {
public void print() {
System.out.println("Inner2");// 54
}
}// 55
}
public class InnerClass {
public void print() {
System.out.println("Inner");// 44
}
}// 45
}
}
@@ -51,6 +51,7 @@ class 'pkg/TestClassSimpleBytecodeMapping$1' {
0 7
3 7
5 7
8 8
}
}
@@ -85,10 +86,12 @@ class 'pkg/TestClassSimpleBytecodeMapping' {
23 26
24 26
27 26
2e 29
}
method 'run (Ljava/lang/Runnable;)V' {
1 32
6 33
}
}
@@ -97,6 +100,7 @@ class 'pkg/TestClassSimpleBytecodeMapping$InnerClass2' {
0 37
3 37
5 37
8 38
}
}
@@ -105,6 +109,7 @@ class 'pkg/TestClassSimpleBytecodeMapping$InnerClass' {
0 43
3 43
5 43
8 44
}
}
@@ -112,6 +117,7 @@ Lines mapping:
12 <-> 5
14 <-> 6
17 <-> 8
18 <-> 9
21 <-> 11
23 <-> 12
24 <-> 13
@@ -121,6 +127,13 @@ Lines mapping:
34 <-> 23
36 <-> 25
38 <-> 27
40 <-> 30
44 <-> 44
45 <-> 45
49 <-> 33
50 <-> 34
54 <-> 38
55 <-> 39
Not mapped:
35
39