From 5f30d19213813b4f7f95000ce1eee78f138e7f48 Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Wed, 4 Mar 2015 03:24:18 -0800 Subject: Mark Gravatar methods of User class as deprecated GitHub has deprecated the gravatar_id attribute of User objects. As of 2014-09-19, the GitHub API always returns an empty string for this attribute. Change-Id: Ice9f37cb5601a61471e679293b338f130a769c14 Refs: https://developer.github.com/changes/2014-09-05-removing-gravatar-id/ Signed-off-by: Chris Rebert Signed-off-by: Matthias Sohn --- .../src/org/eclipse/egit/github/core/User.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/User.java b/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/User.java index 2fd774df..413273a1 100644 --- a/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/User.java +++ b/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/User.java @@ -339,7 +339,9 @@ public class User implements Serializable { /** * @return gravatarId + * @deprecated */ + @Deprecated public String getGravatarId() { return gravatarId; } @@ -347,7 +349,9 @@ public class User implements Serializable { /** * @param gravatarId * @return this user + * @deprecated */ + @Deprecated public User setGravatarId(String gravatarId) { this.gravatarId = gravatarId; return this; -- cgit v1.2.3