fillSuccessor has different semantic: It calls addSuccessor of flowBlock

on each jump


git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@463 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent 6e8cf9cbad
commit df363d6ed0
  1. 10
      jode/jode/flow/StructuredBlock.java

@ -511,16 +511,16 @@ public abstract class StructuredBlock {
}
/**
* Put all the successors of this block and all subblocks into
* the given vector.
* Add all the successors of this block and all subblocks to the
* flow block.
* @param succs The vector, the successors should be stored to.
*/
public void fillSuccessors(java.util.Vector succs) {
public void fillSuccessors() {
if (jump != null)
succs.addElement(jump);
flowBlock.addSuccessor(jump);
StructuredBlock[] subs = getSubBlocks();
for (int i=0; i<subs.length; i++) {
subs[i].fillSuccessors(succs);
subs[i].fillSuccessors();
}
}

Loading…
Cancel
Save