diff options
| author | Eddie Ringle | 2011-12-14 00:40:26 +0000 |
|---|---|---|
| committer | Eddie Ringle | 2011-12-14 00:50:41 +0000 |
| commit | b9a4c9c3020113e499f2815d85ac3b2282ace8e4 (patch) | |
| tree | 4437818a3cb3a14b9aa201450a9e0fca0ccf50a0 | |
| parent | 974e7bfa0be1eba2c1810346c7683b8f26724a48 (diff) | |
| download | egit-github-b9a4c9c3020113e499f2815d85ac3b2282ace8e4.tar.gz egit-github-b9a4c9c3020113e499f2815d85ac3b2282ace8e4.tar.xz egit-github-b9a4c9c3020113e499f2815d85ac3b2282ace8e4.zip | |
Make CommitCommentPayload utilize the CommitComment object
Change-Id: If591079a5f8767d7d4c432301b28f57e2a61f6b3
Signed-off-by: Eddie Ringle <eddie@eringle.net>
2 files changed, 7 insertions, 6 deletions
diff --git a/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/CommitCommentPayloadTest.java b/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/CommitCommentPayloadTest.java index 2c1c1d26..7dd56e82 100644 --- a/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/CommitCommentPayloadTest.java +++ b/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/CommitCommentPayloadTest.java @@ -13,7 +13,7 @@ package org.eclipse.egit.github.core.tests; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNull; -import org.eclipse.egit.github.core.Comment; +import org.eclipse.egit.github.core.CommitComment; import org.eclipse.egit.github.core.event.CommitCommentPayload; import org.junit.Test; @@ -37,7 +37,8 @@ public class CommitCommentPayloadTest { @Test public void updateFields() { CommitCommentPayload payload = new CommitCommentPayload(); - Comment comment = new Comment().setBody("comment"); + CommitComment comment = new CommitComment(); + comment.setBody("comment"); assertEquals(comment, payload.setComment(comment).getComment()); } } diff --git a/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/event/CommitCommentPayload.java b/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/event/CommitCommentPayload.java index 7a3983a4..052c2f53 100644 --- a/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/event/CommitCommentPayload.java +++ b/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/event/CommitCommentPayload.java @@ -12,7 +12,7 @@ package org.eclipse.egit.github.core.event; import java.io.Serializable; -import org.eclipse.egit.github.core.Comment; +import org.eclipse.egit.github.core.CommitComment; /** * CommitCommentEvent payload model class. @@ -22,12 +22,12 @@ public class CommitCommentPayload extends EventPayload implements private static final long serialVersionUID = -2606554911096551099L; - private Comment comment; + private CommitComment comment; /** * @return comment */ - public Comment getComment() { + public CommitComment getComment() { return comment; } @@ -35,7 +35,7 @@ public class CommitCommentPayload extends EventPayload implements * @param comment * @return this CommitCommentPayload */ - public CommitCommentPayload setComment(Comment comment) { + public CommitCommentPayload setComment(CommitComment comment) { this.comment = comment; return this; } |
