fillDeclarables always take a Set now

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@954 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent 1873632807
commit 67fe8d52b3
  1. 8
      jode/jode/expr/CheckNullOperator.java
  2. 8
      jode/jode/expr/ConstructorOperator.java
  3. 8
      jode/jode/expr/Expression.java
  4. 8
      jode/jode/expr/Operator.java

@ -26,7 +26,7 @@ import jode.flow.VariableSet;
///#ifdef JDK12
///import java.util.Set;
///#else
import jode.util.SimpleSet;
import jode.util.Set;
///#endif
/**
@ -81,11 +81,7 @@ public class CheckNullOperator extends Operator {
super.fillInGenSet(in, gen);
}
///#ifdef JDK12
/// public void fillDeclarables(Set used) {
///#else
public void fillDeclarables(SimpleSet used) {
///#endif
public void fillDeclarables(Set used) {
used.add(local);
super.fillDeclarables(used);
}

@ -35,7 +35,7 @@ import java.lang.reflect.Modifier;
///#ifdef JDK12
///import java.util.Set;
///#else
import jode.util.SimpleSet;
import jode.util.Set;
///#endif
public class ConstructorOperator extends Operator
@ -169,11 +169,7 @@ public class ConstructorOperator extends Operator
* We add the named method scoped classes to the declarables, and
* only fillDeclarables on the parameters we will print.
*/
///#ifdef JDK12
/// public void fillDeclarables(Set used) {
///#else
public void fillDeclarables(SimpleSet used) {
///#endif
public void fillDeclarables(Set used) {
ClassInfo clazz = getClassInfo();
InnerClassInfo outer = getOuterClassInfo(clazz);
ClassAnalyzer clazzAna = methodAnalyzer.getClassAnalyzer(clazz);

@ -26,7 +26,7 @@ import jode.flow.VariableSet;
///#ifdef JDK12
///import java.util.Set;
///#else
import jode.util.SimpleSet;
import jode.util.Set;
///#endif
public abstract class Expression {
@ -232,11 +232,7 @@ public abstract class Expression {
public void fillInGenSet(VariableSet in, VariableSet gen) {
}
///#ifdef JDK12
/// public void fillDeclarables(Set used) {
///#else
public void fillDeclarables(SimpleSet used) {
///#endif
public void fillDeclarables(Set used) {
}
public abstract void dumpExpression(TabbedPrintWriter writer)

@ -26,7 +26,7 @@ import jode.flow.VariableSet;
///#ifdef JDK12
///import java.util.Set;
///#else
import jode.util.SimpleSet;
import jode.util.Set;
///#endif
public abstract class Operator extends Expression {
@ -176,11 +176,7 @@ public abstract class Operator extends Expression {
subExpressions[i].fillInGenSet(in,gen);
}
///#ifdef JDK12
/// public void fillDeclarables(Set used) {
///#else
public void fillDeclarables(SimpleSet used) {
///#endif
public void fillDeclarables(Set used) {
if (this instanceof LocalVarOperator) {
used.add(((LocalVarOperator) this).getLocalInfo());
}

Loading…
Cancel
Save