private void add(AnnotateBlock aBlock){
  int size=blocks.size();
  if (size == 0) {
    blocks.add(aBlock);
  }
 else {
    AnnotateBlock lastBlock=(AnnotateBlock)blocks.get(size - 1);
    if (lastBlock.getRevision() == aBlock.getRevision()) {
      lastBlock.setEndLine(aBlock.getStartLine());
    }
 else {
      blocks.add(aBlock);
    }
  }
}

private void add ( AnnotateBlock aBlock ) { int size = blocks . size ( ) ; if ( size == 0 ) { blocks . add ( aBlock ) ; } else { AnnotateBlock lastBlock = ( AnnotateBlock ) blocks . get ( size - 1 ) ; if ( lastBlock . getRevision ( ) == aBlock . getRevision ( ) ) { lastBlock . setEndLine ( aBlock . getStartLine ( ) ) ; } else { blocks . add ( aBlock ) ; } } }
add an annotate block merging this block with the previous block if it is part of the same change .
