aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Sohn2018-03-09 19:37:39 -0500
committerMatthias Sohn2018-03-16 19:55:55 -0400
commit44e57f5a2041abfe7591069c3032a7e869adfda4 (patch)
tree8b156ce11bb0f3eecbe0771368a05724a11b3059
parentcb53b5f66682410b2ba7e71222d4669f46c12cd7 (diff)
downloadegit-github-44e57f5a2041abfe7591069c3032a7e869adfda4.tar.gz
egit-github-44e57f5a2041abfe7591069c3032a7e869adfda4.tar.xz
egit-github-44e57f5a2041abfe7591069c3032a7e869adfda4.zip
Remove deprecated User#getGravatarId and #setGravatarId
Change-Id: I13f82ce01166752fe18eb5fdf8a3168e743d8249 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
-rw-r--r--org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/UserTest.java2
-rw-r--r--org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/live/UserTest.java2
-rw-r--r--org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/User.java20
3 files changed, 0 insertions, 24 deletions
diff --git a/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/UserTest.java b/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/UserTest.java
index 775a86f0..88aea4ed 100644
--- a/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/UserTest.java
+++ b/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/UserTest.java
@@ -41,7 +41,6 @@ public class UserTest {
assertNull(user.getEmail());
assertEquals(0, user.getFollowers());
assertEquals(0, user.getFollowing());
- assertNull(user.getGravatarId());
assertNull(user.getHtmlUrl());
assertEquals(0, user.getId());
assertNull(user.getLocation());
@@ -75,7 +74,6 @@ public class UserTest {
assertEquals("e@mai.l", user.setEmail("e@mai.l").getEmail());
assertEquals(1, user.setFollowers(1).getFollowers());
assertEquals(2, user.setFollowing(2).getFollowing());
- assertEquals("gid", user.setGravatarId("gid").getGravatarId());
assertEquals("html", user.setHtmlUrl("html").getHtmlUrl());
assertEquals(90, user.setId(90).getId());
assertEquals("earth", user.setLocation("earth").getLocation());
diff --git a/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/live/UserTest.java b/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/live/UserTest.java
index d74bb28c..d02bb49c 100644
--- a/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/live/UserTest.java
+++ b/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/live/UserTest.java
@@ -40,7 +40,6 @@ public class UserTest extends LiveTest {
User user = service.getUser();
assertNotNull(user);
assertEquals(client.getUser(), user.getLogin());
- assertNotNull(user.getGravatarId());
assertNotNull(user.getAvatarUrl());
assertNotNull(user.getCreatedAt());
assertNotNull(user.getPlan());
@@ -59,7 +58,6 @@ public class UserTest extends LiveTest {
User user = service.getUser(client.getUser());
assertNotNull(user);
assertEquals(client.getUser(), user.getLogin());
- assertNotNull(user.getGravatarId());
assertNotNull(user.getAvatarUrl());
assertNotNull(user.getCreatedAt());
}
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 1fe5743f..e308ace4 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
@@ -356,26 +356,6 @@ public class User implements Serializable {
}
/**
- * @return gravatarId
- * @deprecated
- */
- @Deprecated
- public String getGravatarId() {
- return gravatarId;
- }
-
- /**
- * @param gravatarId
- * @return this user
- * @deprecated
- */
- @Deprecated
- public User setGravatarId(String gravatarId) {
- this.gravatarId = gravatarId;
- return this;
- }
-
- /**
* @return htmlUrl
*/
public String getHtmlUrl() {