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) {
LocalInfo li = (lvt != null)
? lvt.getLocal(slot).getInfo(addr)
: new LocalInfo(slot);
if (!allLocals.contains(li))
LocalInfo li = new LocalInfo(slot);
if (lvt != null) {
LocalVarEntry entry = lvt.getLocal(slot, addr);
if (entry != null)
li.addHint(entry);
}
allLocals.addElement(li);
return li;
}

Loading…
Cancel
Save