Search in sources :

Example 1 with PatchSetCommentAttribute

use of com.google.gerrit.server.data.PatchSetCommentAttribute in project gerrit by GerritCodeReview.

the class EventFactory method asPatchSetLineAttribute.

public PatchSetCommentAttribute asPatchSetLineAttribute(Comment c) {
    PatchSetCommentAttribute a = new PatchSetCommentAttribute();
    a.reviewer = asAccountAttribute(c.author.getId());
    a.file = c.key.filename;
    a.line = c.lineNbr;
    a.message = c.message;
    return a;
}
Also used : PatchSetCommentAttribute(com.google.gerrit.server.data.PatchSetCommentAttribute)

Example 2 with PatchSetCommentAttribute

use of com.google.gerrit.server.data.PatchSetCommentAttribute in project gerrit by GerritCodeReview.

the class EventFactory method asPatchSetLineAttribute.

public PatchSetCommentAttribute asPatchSetLineAttribute(HumanComment c) {
    PatchSetCommentAttribute a = new PatchSetCommentAttribute();
    a.reviewer = asAccountAttribute(c.author.getId());
    a.file = c.key.filename;
    a.line = c.lineNbr;
    a.message = c.message;
    return a;
}
Also used : PatchSetCommentAttribute(com.google.gerrit.server.data.PatchSetCommentAttribute)

Aggregations

PatchSetCommentAttribute (com.google.gerrit.server.data.PatchSetCommentAttribute)2