[java-decompiler] cleanup (arrays to data classes; formatting; typos; dead code)
This commit is contained in:
@@ -21,13 +21,9 @@ import java.util.*;
|
||||
import java.util.Map.Entry;
|
||||
|
||||
public class BytecodeMappingTracer {
|
||||
|
||||
private int currentSourceLine;
|
||||
|
||||
private StructLineNumberTableAttribute lineNumberTable = null;
|
||||
|
||||
// bytecode offset, source line
|
||||
private final Map<Integer, Integer> mapping = new HashMap<Integer, Integer>();
|
||||
private final Map<Integer, Integer> mapping = new HashMap<Integer, Integer>(); // bytecode offset, source line
|
||||
|
||||
public BytecodeMappingTracer() { }
|
||||
|
||||
@@ -43,12 +39,6 @@ public class BytecodeMappingTracer {
|
||||
currentSourceLine += number_lines;
|
||||
}
|
||||
|
||||
public void shiftSourceLines(int shift) {
|
||||
for (Entry<Integer, Integer> entry : mapping.entrySet()) {
|
||||
entry.setValue(entry.getValue() + shift);
|
||||
}
|
||||
}
|
||||
|
||||
public void addMapping(int bytecode_offset) {
|
||||
if (!mapping.containsKey(bytecode_offset)) {
|
||||
mapping.put(bytecode_offset, currentSourceLine);
|
||||
|
||||
Reference in New Issue
Block a user