New lvt handling

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@666 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent 28f34a0a76
commit 247a51ba66
  1. 10
      jode/jode/decompiler/CodeAnalyzer.java

@ -235,10 +235,12 @@ public class CodeAnalyzer implements Analyzer {
} }
public LocalInfo getLocalInfo(int addr, int slot) { public LocalInfo getLocalInfo(int addr, int slot) {
LocalInfo li = (lvt != null) LocalInfo li = new LocalInfo(slot);
? lvt.getLocal(slot).getInfo(addr) if (lvt != null) {
: new LocalInfo(slot); LocalVarEntry entry = lvt.getLocal(slot, addr);
if (!allLocals.contains(li)) if (entry != null)
li.addHint(entry);
}
allLocals.addElement(li); allLocals.addElement(li);
return li; return li;
} }

Loading…
Cancel
Save