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

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

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

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

Loading…
Cancel
Save