private ObjectId createNoteContent()

in src/main/java/com/googlesource/gerrit/plugins/reviewnotes/CreateReviewNotes.java [227:238]


  private ObjectId createNoteContent(ChangeNotes notes, PatchSet ps) throws IOException {
    HeaderFormatter fmt = new HeaderFormatter(gerritServerIdent.getTimeZone(), anonymousCowardName);
    if (ps != null) {
      try {
        createCodeReviewNote(notes, ps, fmt);
        return getInserter().insert(Constants.OBJ_BLOB, fmt.toString().getBytes(UTF_8));
      } catch (NoSuchChangeException e) {
        throw new IOException(e);
      }
    }
    return null;
  }