diff --git a/src/main/java/org/kohsuke/github/GHPerson.java b/src/main/java/org/kohsuke/github/GHPerson.java index 687093d1d..92a2b90d2 100644 --- a/src/main/java/org/kohsuke/github/GHPerson.java +++ b/src/main/java/org/kohsuke/github/GHPerson.java @@ -14,7 +14,7 @@ import java.util.TreeMap; * * @author Kohsuke Kawaguchi */ -public class GHPerson { +public abstract class GHPerson { /*package almost final*/ GitHub root; // core data fields that exist even for "small" user data (such as the user info in pull request) @@ -235,5 +235,4 @@ public class GHPerson { populate(); return followers; } - } diff --git a/src/main/java/org/kohsuke/github/GHRepository.java b/src/main/java/org/kohsuke/github/GHRepository.java index 31f16785f..5302413c3 100644 --- a/src/main/java/org/kohsuke/github/GHRepository.java +++ b/src/main/java/org/kohsuke/github/GHRepository.java @@ -57,7 +57,7 @@ public class GHRepository { private String description, homepage, name; private String url; // this is the API url private String html_url; // this is the UI - private GHPerson owner; // not fully populated. beware. + private GHUser owner; // not fully populated. beware. private boolean has_issues, has_wiki, fork, _private, has_downloads; private int watchers,forks,open_issues,size; private String created_at, pushed_at; @@ -378,17 +378,6 @@ public class GHRepository { }; } - /** - * Retrieves all the pull requests of a particular state by knowing organisation and repository - */ - public static PagedIterable listPullRequests(final GitHub root, final GHPerson owner, final String repositoryName, final GHIssueState state) { - GHRepository repo = new GHRepository(); - repo.root = root; - repo.name = repositoryName; - repo.owner = owner; - return repo.listPullRequests(state); - } - /** * Retrieves the currently configured hooks. */