public void removeChildJob(Job childJob){
  if (!childJobs.contains(childJob)) {
    throw new RuntimeException("Tried to remove job " + childJob + " when it wasn't a child");
  }
  boolean removed=childJobs.remove(childJob);
  if (!removed) {
    throw new RuntimeException("Shouldn't happen!");
  }
}

public void removeChildJob ( Job childJob ) { if ( ! childJobs . contains ( childJob ) ) { throw new RuntimeException ( "Tried to remove job " + childJob + " when it wasn't a child" ) ; } boolean removed = childJobs . remove ( childJob ) ; if ( ! removed ) { throw new RuntimeException ( "Shouldn't happen!" ) ; } }
removes a child job from this job ' s set of child jobs . this should be called when the this job has finished running and is being removed from the dag .
