avoid some calls to clone()
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2798 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
This commit is contained in:
parent
4931b4b80b
commit
af88727114
|
@ -973,12 +973,16 @@ public class PDG implements NumberedGraph<Statement> {
|
|||
if (paramCalleeStatements == null) {
|
||||
createCalleeParams();
|
||||
}
|
||||
return paramCalleeStatements.clone();
|
||||
Statement[] result = new Statement[paramCalleeStatements.length];
|
||||
System.arraycopy(paramCalleeStatements, 0, result, 0, result.length);
|
||||
return result;
|
||||
}
|
||||
|
||||
public Statement[] getReturnStatements() {
|
||||
populate();
|
||||
return returnStatements.clone();
|
||||
Statement[] result = new Statement[returnStatements.length];
|
||||
System.arraycopy(returnStatements, 0, result, 0, result.length);
|
||||
return result;
|
||||
}
|
||||
|
||||
public CGNode getCallGraphNode() {
|
||||
|
|
Loading…
Reference in New Issue