private Review extractLatestReviewFromNotes(String rawNoteDataStr) throws GitClientException {
  String[] noteDataStrs=rawNoteDataStr.split("\n");
  Review latest=parseReviewJson(noteDataStrs[0]);
  for (int i=1; i < noteDataStrs.length; i++) {
    Review anotherOne=parseReviewJson(noteDataStrs[i]);
    try {
      if (latest == null || ((anotherOne != null && anotherOne.getTimestamp() > latest.getTimestamp()))) {
        latest=anotherOne;
      }
    }
 catch (    Exception e) {
      throw new GitClientException(e);
    }
  }
  return latest;
}

private Review extractLatestReviewFromNotes ( String rawNoteDataStr ) throws GitClientException { String [ ] noteDataStrs = rawNoteDataStr . split ( "\n" ) ; Review latest = parseReviewJson ( noteDataStrs [ 0 ] ) ; for ( int i = 1 ; i < noteDataStrs . length ; i ++ ) { Review anotherOne = parseReviewJson ( noteDataStrs [ i ] ) ; try { if ( latest == null || ( ( anotherOne != null && anotherOne . getTimestamp ( ) > latest . getTimestamp ( ) ) ) ) { latest = anotherOne ; } } catch ( Exception e ) { throw new GitClientException ( e ) ; } } return latest ; }
pulls the most recent notes data for a review out of the raw notes data string , leveraging the timestamp .
