bug fix: fillInGenSet was missing

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@797 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent 90ff2f600b
commit f396dca6fa
  1. 7
      jode/jode/expr/CheckNullOperator.java

@ -21,6 +21,7 @@ package jode.expr;
import jode.type.Type; import jode.type.Type;
import jode.decompiler.LocalInfo; import jode.decompiler.LocalInfo;
import jode.decompiler.TabbedPrintWriter; import jode.decompiler.TabbedPrintWriter;
import jode.flow.VariableSet;
/** /**
* This is a pseudo operator, which represents the check against null * This is a pseudo operator, which represents the check against null
@ -68,6 +69,12 @@ public class CheckNullOperator extends Operator {
local.remove(); local.remove();
} }
public void fillInGenSet(VariableSet in, VariableSet gen) {
if (gen != null)
gen.addElement(local);
super.fillInGenSet(in, gen);
}
public void dumpExpression(TabbedPrintWriter writer) public void dumpExpression(TabbedPrintWriter writer)
throws java.io.IOException { throws java.io.IOException {
writer.print("("+local.getName()+" = "); writer.print("("+local.getName()+" = ");

Loading…
Cancel
Save