Move ReviewInput.Comment to abstract class Comment

This class is used in both CommentInfo and ReviewInput.CommentInput.

Change-Id: I933ec829488d777a11b84aa57108415568950f58
This commit is contained in:
Urs Wolfer
2014-05-02 20:37:50 +02:00
committed by Shawn Pearce
parent 9f9284679e
commit 3ef5d4268c
5 changed files with 75 additions and 33 deletions

View File

@@ -718,11 +718,11 @@ public abstract class AbstractQueryChangesTest {
ReviewInput input = new ReviewInput();
input.message = "toplevel";
ReviewInput.Comment comment = new ReviewInput.Comment();
ReviewInput.CommentInput comment = new ReviewInput.CommentInput();
comment.line = 1;
comment.message = "inline";
input.comments = ImmutableMap.<String, List<ReviewInput.Comment>> of(
Patch.COMMIT_MSG, ImmutableList.<ReviewInput.Comment> of(comment));
input.comments = ImmutableMap.<String, List<ReviewInput.CommentInput>> of(
Patch.COMMIT_MSG, ImmutableList.<ReviewInput.CommentInput> of(comment));
postReview.apply(new RevisionResource(
changes.parse(change.getId()), ins.getPatchSet()), input);