changed return value of GHRepository.getPullRequest()

I'm not sure whether this influence something or not, but I think it should be OK.
This commit is contained in:
Honza Brázdil
2012-08-31 14:30:00 +02:00
parent c283c4e595
commit b40677a3ca
2 changed files with 2 additions and 2 deletions

View File

@@ -117,6 +117,6 @@ public class GHPullRequest extends GHIssue {
}
public GHDetailedPullRequest getDetailedPullRequest() throws IOException{
return (GHDetailedPullRequest) owner.getPullRequest(this.getNumber());
return owner.getPullRequest(this.getNumber());
}
}

View File

@@ -352,7 +352,7 @@ public class GHRepository {
/**
* Retrieves a specified pull request.
*/
public GHPullRequest getPullRequest(int i) throws IOException {
public GHDetailedPullRequest getPullRequest(int i) throws IOException {
return root.retrieveWithAuth("/repos/" + owner.login + '/' + name + "/pulls/" + i, GHDetailedPullRequest.class).wrapUp(this);
}