private void removeTask(HadoopTaskInfo task){
  if (tasks != null)   tasks.remove(task);
}

private void removeTask ( HadoopTaskInfo task ) { if ( tasks != null ) tasks . remove ( task ) ; }
removes task when it was completed .
