summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEddie Ringle2011-12-13 19:40:26 (EST)
committer Eddie Ringle2011-12-13 19:50:41 (EST)
commitb9a4c9c3020113e499f2815d85ac3b2282ace8e4 (patch)
tree4437818a3cb3a14b9aa201450a9e0fca0ccf50a0
parent974e7bfa0be1eba2c1810346c7683b8f26724a48 (diff)
downloadegit-github-b9a4c9c3020113e499f2815d85ac3b2282ace8e4.zip
egit-github-b9a4c9c3020113e499f2815d85ac3b2282ace8e4.tar.gz
egit-github-b9a4c9c3020113e499f2815d85ac3b2282ace8e4.tar.bz2
Make CommitCommentPayload utilize the CommitComment objectrefs/changes/10/4810/2
Change-Id: If591079a5f8767d7d4c432301b28f57e2a61f6b3 Signed-off-by: Eddie Ringle <eddie@eringle.net>
-rw-r--r--org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/CommitCommentPayloadTest.java5
-rw-r--r--org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/event/CommitCommentPayload.java8
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 2c1c1d2..7dd56e8 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 7a3983a..052c2f5 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;
}