private GitNoteWriter(String reviewHash,final Repository repo,String ref,PersonIdent author){
  this.ref=ref;
  this.repo=repo;
  this.author=author;
  revWalk=new RevWalk(repo);
  inserter=repo.newObjectInserter();
  reader=repo.newObjectReader();
  try {
    ObjectId reviewRefObjId=repo.resolve(reviewHash);
    this.reviewCommit=revWalk.parseCommit(reviewRefObjId);
  }
 catch (  Exception e) {
    logger.log(Level.SEVERE,"Failed to init note writer for commit " + reviewHash,e);
    throw new RuntimeException(e);
  }
}

private GitNoteWriter ( String reviewHash , final Repository repo , String ref , PersonIdent author ) { this . ref = ref ; this . repo = repo ; this . author = author ; revWalk = new RevWalk ( repo ) ; inserter = repo . newObjectInserter ( ) ; reader = repo . newObjectReader ( ) ; try { ObjectId reviewRefObjId = repo . resolve ( reviewHash ) ; this . reviewCommit = revWalk . parseCommit ( reviewRefObjId ) ; } catch ( Exception e ) { logger . log ( Level . SEVERE , "Failed to init note writer for commit " + reviewHash , e ) ; throw new RuntimeException ( e ) ; } }
private ctor . use the static factory methods .
