diff options
author | Kevin Sawicki | 2011-06-03 20:19:38 +0000 |
---|---|---|
committer | Kevin Sawicki | 2011-06-03 20:19:38 +0000 |
commit | 0f65db46969e141722bed8bf18ebdf83f5dbce5a (patch) | |
tree | 5d6b94e340628438cd326066b85c1ea88cd33799 /org.eclipse.mylyn.github.core/src | |
parent | 53ba2fc03caa5f465a44f5b021e47043bad5f785 (diff) | |
download | egit-github-0f65db46969e141722bed8bf18ebdf83f5dbce5a.tar.gz egit-github-0f65db46969e141722bed8bf18ebdf83f5dbce5a.tar.xz egit-github-0f65db46969e141722bed8bf18ebdf83f5dbce5a.zip |
Migrate from using deprecated API.
GitHub API v3 is deprecating certain beta functionality
on June 15th, this change migrates that functionality.
Change-Id: I0daa1b0e8fa5166b89d1fa6c663bcaa90b94dda9
Signed-off-by: Kevin Sawicki <kevin@github.com>
Diffstat (limited to 'org.eclipse.mylyn.github.core/src')
2 files changed, 3 insertions, 3 deletions
diff --git a/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/gist/GistTaskDataHandler.java b/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/gist/GistTaskDataHandler.java index 3e22ecb2..33b0b6bb 100644 --- a/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/gist/GistTaskDataHandler.java +++ b/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/gist/GistTaskDataHandler.java @@ -135,7 +135,7 @@ public class GistTaskDataHandler extends AbstractTaskDataHandler { mapper.setRepositoryPerson(reporter, reporterPerson); TaskAttribute gravatar = GistAttribute.AUTHOR_GRAVATAR.create(data); - mapper.setValue(gravatar, user.getGravatarUrl()); + mapper.setValue(gravatar, user.getAvatarUrl()); } Map<String, GistFile> files = gist.getFiles(); diff --git a/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/issue/IssueTaskDataHandler.java b/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/issue/IssueTaskDataHandler.java index ec941e76..e11febb4 100644 --- a/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/issue/IssueTaskDataHandler.java +++ b/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/issue/IssueTaskDataHandler.java @@ -94,14 +94,14 @@ public class IssueTaskDataHandler extends AbstractTaskDataHandler { User reporter = issue.getUser(); createAttribute(data, IssueAttribute.REPORTER, reporter, repository); - String reporterGravatar = reporter != null ? reporter.getGravatarUrl() + String reporterGravatar = reporter != null ? reporter.getAvatarUrl() : null; createAttribute(data, IssueAttribute.REPORTER_GRAVATAR, reporterGravatar); User assignee = issue.getAssignee(); createAttribute(data, IssueAttribute.ASSIGNEE, assignee, repository); - String assigneeGravatar = assignee != null ? assignee.getGravatarUrl() + String assigneeGravatar = assignee != null ? assignee.getAvatarUrl() : null; createAttribute(data, IssueAttribute.ASSIGNEE_GRAVATAR, assigneeGravatar); |