From b40677a3ca5fe8f614c55e53ee12d1305e227352 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Honza=20Br=C3=A1zdil?= Date: Fri, 31 Aug 2012 14:30:00 +0200 Subject: [PATCH] changed return value of GHRepository.getPullRequest() I'm not sure whether this influence something or not, but I think it should be OK. --- src/main/java/org/kohsuke/github/GHPullRequest.java | 2 +- src/main/java/org/kohsuke/github/GHRepository.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/kohsuke/github/GHPullRequest.java b/src/main/java/org/kohsuke/github/GHPullRequest.java index 94699c97a..961117573 100644 --- a/src/main/java/org/kohsuke/github/GHPullRequest.java +++ b/src/main/java/org/kohsuke/github/GHPullRequest.java @@ -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()); } } diff --git a/src/main/java/org/kohsuke/github/GHRepository.java b/src/main/java/org/kohsuke/github/GHRepository.java index 5fa3cc0b3..12b3d3c88 100644 --- a/src/main/java/org/kohsuke/github/GHRepository.java +++ b/src/main/java/org/kohsuke/github/GHRepository.java @@ -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); }