@Override public String toString() { final StringBuilder buf = new StringBuilder(128); buf.append(Util.simpleTypeName(this)); buf.append('['); buf.append(revision.major()); buf.append(": author="); buf.append(author.email()); buf.append(", when="); buf.append(whenAsText()); buf.append(", summary="); buf.append(summary); buf.append(']'); return buf.toString(); } }
@Override public String toString() { final StringBuilder buf = new StringBuilder(128); buf.append(Util.simpleTypeName(this)); buf.append('['); buf.append(revision.major()); buf.append(": author="); buf.append(author.email()); buf.append(", when="); buf.append(whenAsText()); buf.append(", summary="); buf.append(summary); buf.append(']'); return buf.toString(); } }
@Override public String toString() { final StringBuilder buf = new StringBuilder(128); buf.append(Util.simpleTypeName(this)); buf.append('['); buf.append(revision.major()); buf.append(": author="); buf.append(author.email()); buf.append(", when="); buf.append(whenAsText()); buf.append(", summary="); buf.append(summary); buf.append(']'); return buf.toString(); } }
@Override protected Commit doForward(com.linecorp.centraldogma.common.Commit commit) { final Comment comment = new Comment(); comment.setContent(commit.detail()); comment.setMarkup(MarkupConverter.TO_DATA.convert(commit.markup())); return new Commit(RevisionConverter.TO_DATA.convert(commit.revision()), AuthorConverter.TO_DATA.convert(commit.author()), commit.whenAsText(), commit.summary(), comment, Collections.emptyList()); }
@Override protected Commit doForward(com.linecorp.centraldogma.common.Commit commit) { final Comment comment = new Comment(); comment.setContent(commit.detail()); comment.setMarkup(MarkupConverter.TO_DATA.convert(commit.markup())); return new Commit(RevisionConverter.TO_DATA.convert(commit.revision()), AuthorConverter.TO_DATA.convert(commit.author()), commit.whenAsText(), commit.summary(), comment, Collections.emptyList()); }
static CommitDto convert(Commit commit) { final CommitDto dto = new CommitDto(); dto.setAuthor(convert(commit.author())); dto.setRevision(convert(commit.revision())); dto.setTimestamp(commit.whenAsText()); dto.setSummary(commit.summary()); dto.setDetail(convert(commit.detail(), commit.markup())); return dto; }
static CommitDto convert(Commit commit) { final CommitDto dto = new CommitDto(); dto.setAuthor(convert(commit.author())); dto.setRevision(convert(commit.revision())); dto.setTimestamp(commit.whenAsText()); dto.setSummary(commit.summary()); dto.setDetail(convert(commit.detail(), commit.markup())); return dto; }
static CommitDto convert(Commit commit) { final CommitDto dto = new CommitDto(); dto.setAuthor(convert(commit.author())); dto.setRevision(convert(commit.revision())); dto.setTimestamp(commit.whenAsText()); dto.setSummary(commit.summary()); dto.setDetail(convert(commit.detail(), commit.markup())); return dto; }