Renaming to better represent what it does.

This commit is contained in:
Kohsuke Kawaguchi
2012-09-05 19:13:10 -07:00
parent ea9f3eacbc
commit 8a95847b0a
10 changed files with 41 additions and 41 deletions

View File

@@ -41,14 +41,14 @@ public class GHUser extends GHPerson {
* Follow this user.
*/
public void follow() throws IOException {
new Poster(root).withCredential().method("PUT").to("/user/following/" + login);
new Requester(root).withCredential().method("PUT").to("/user/following/" + login);
}
/**
* Unfollow this user.
*/
public void unfollow() throws IOException {
new Poster(root).withCredential().method("DELETE").to("/user/following/" + login);
new Requester(root).withCredential().method("DELETE").to("/user/following/" + login);
}
/**