Now that everything is V3 API, there's no need for such enum.

This commit is contained in:
Kohsuke Kawaguchi
2012-06-12 14:20:52 -07:00
parent 5525ae8921
commit 82acf4f107
11 changed files with 36 additions and 91 deletions

View File

@@ -23,17 +23,13 @@
*/
package org.kohsuke.github;
import com.infradna.tool.bridge_method_injector.BridgeMethodsAdded;
import com.infradna.tool.bridge_method_injector.WithBridgeMethods;
import java.io.IOException;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import static org.kohsuke.github.ApiVersion.V3;
/**
* Represents an user of GitHub.
*
@@ -45,14 +41,14 @@ public class GHUser extends GHPerson {
* Follow this user.
*/
public void follow() throws IOException {
new Poster(root, V3).withCredential().to("/user/following/"+login,null,"PUT");
new Poster(root).withCredential().to("/user/following/"+login,null,"PUT");
}
/**
* Unfollow this user.
*/
public void unfollow() throws IOException {
new Poster(root,V3).withCredential().to("/user/following/"+login,null,"DELETE");
new Poster(root).withCredential().to("/user/following/"+login,null,"DELETE");
}
/**