decompiler: fixed line mapping in synchronized block

This commit is contained in:
Egor.Ushakov
2014-10-21 20:49:51 +04:00
parent 0d80e663ae
commit 56b3edd3ca
8 changed files with 98 additions and 104 deletions

Binary file not shown.

View File

@@ -0,0 +1,30 @@
package pkg;
public class TestSynchronizedMapping {
public int test(int var1) {
synchronized(this) {
return var1++;
}
}
public void test2(String var1) {
System.out.println(var1);
}
}
class 'pkg/TestSynchronizedMapping' {
method 'test (I)I' {
3 4
5 5
}
method 'test2 (Ljava/lang/String;)V' {
0 10
4 10
}
}
Lines mapping:
8 <-> 5
9 <-> 6
14 <-> 11

View File

@@ -0,0 +1,16 @@
package pkg;
import java.lang.Override;
import java.lang.Runnable;
public class TestSynchronizedMapping {
public int test(int a) {
synchronized (this) {
return a++;
}
}
public void test2(String a) {
System.out.println(a);
}
}