mirror of
https://github.com/moparisthebest/fernflower
synced 2024-11-25 10:42:16 -05:00
decompiler: fixed incorrect line numbers in dumped mapping
This commit is contained in:
parent
a721490f62
commit
47fad13908
@ -97,7 +97,7 @@ public class BytecodeSourceMapper {
|
||||
buffer.append("Lines mapping:").appendLineSeparator();
|
||||
Map<Integer, Integer> sorted = new TreeMap<Integer, Integer>(linesMapping);
|
||||
for (Entry<Integer, Integer> entry : sorted.entrySet()) {
|
||||
buffer.append(entry.getKey()).append(" <-> ").append(entry.getValue()).appendLineSeparator();
|
||||
buffer.append(entry.getKey()).append(" <-> ").append(entry.getValue()+ offset_total + 1).appendLineSeparator();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -58,12 +58,12 @@ class 'pkg/TestClassSimpleBytecodeMapping' {
|
||||
}
|
||||
|
||||
Lines mapping:
|
||||
12 <-> 2
|
||||
14 <-> 3
|
||||
17 <-> 5
|
||||
21 <-> 8
|
||||
22 <-> 9
|
||||
23 <-> 10
|
||||
25 <-> 12
|
||||
26 <-> 13
|
||||
31 <-> 18
|
||||
12 <-> 5
|
||||
14 <-> 6
|
||||
17 <-> 8
|
||||
21 <-> 11
|
||||
22 <-> 12
|
||||
23 <-> 13
|
||||
25 <-> 15
|
||||
26 <-> 16
|
||||
31 <-> 21
|
||||
|
Loading…
Reference in New Issue
Block a user