change some Iterators in API to Collections
remove some unnecessary WarningSet parameters git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1207 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
This commit is contained in:
parent
ea9c4a2f93
commit
553ee0faea
|
@ -25,8 +25,8 @@ import com.ibm.wala.util.warnings.WarningSet;
|
|||
|
||||
public class JSCallGraph extends AstCallGraph {
|
||||
|
||||
public JSCallGraph(ClassHierarchy cha, AnalysisOptions options, WarningSet warnings) {
|
||||
super(cha, options, warnings);
|
||||
public JSCallGraph(ClassHierarchy cha, AnalysisOptions options) {
|
||||
super(cha, options);
|
||||
}
|
||||
|
||||
public class JSFakeRoot extends ScriptFakeRoot {
|
||||
|
@ -36,7 +36,7 @@ public class JSCallGraph extends AstCallGraph {
|
|||
}
|
||||
|
||||
public InducedCFG makeControlFlowGraph() {
|
||||
return new JSInducedCFG(getStatements(new WarningSet()), this, Everywhere.EVERYWHERE);
|
||||
return new JSInducedCFG(getStatements(), this, Everywhere.EVERYWHERE);
|
||||
}
|
||||
|
||||
public SSANewInstruction addAllocation(TypeReference T, WarningSet warnings) {
|
||||
|
|
|
@ -71,7 +71,7 @@ public class JSSSAPropagationCallGraphBuilder extends AstSSAPropagationCallGraph
|
|||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
protected ExplicitCallGraph createEmptyCallGraph(ClassHierarchy cha, AnalysisOptions options) {
|
||||
return new JSCallGraph(cha, options, getWarnings());
|
||||
return new JSCallGraph(cha, options);
|
||||
}
|
||||
|
||||
protected TypeInference makeTypeInference(IR ir, ClassHierarchy cha) {
|
||||
|
|
|
@ -17,7 +17,6 @@ import com.ibm.wala.ipa.callgraph.impl.Everywhere;
|
|||
import com.ibm.wala.ipa.summaries.MethodSummary;
|
||||
import com.ibm.wala.ipa.summaries.SummarizedMethod;
|
||||
import com.ibm.wala.types.MethodReference;
|
||||
import com.ibm.wala.util.warnings.WarningSet;
|
||||
|
||||
public class JavaScriptSummarizedFunction extends SummarizedMethod {
|
||||
|
||||
|
@ -33,7 +32,7 @@ public class JavaScriptSummarizedFunction extends SummarizedMethod {
|
|||
}
|
||||
|
||||
public InducedCFG makeControlFlowGraph() {
|
||||
return new JSInducedCFG(getStatements(new WarningSet()), this, Everywhere.EVERYWHERE);
|
||||
return new JSInducedCFG(getStatements(), this, Everywhere.EVERYWHERE);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue