Skip to content

Commit 9345d3b

Browse files
committed
Follow the convention in this library
1 parent 9381471 commit 9345d3b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/org/kohsuke/github/GHPullRequest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import java.net.URL;
2929
import java.util.Arrays;
3030
import java.util.Collection;
31+
import java.util.Collections;
3132
import java.util.Date;
3233
import java.util.List;
3334

@@ -223,9 +224,9 @@ public String getMergeCommitSha() throws IOException {
223224
return merge_commit_sha;
224225
}
225226

226-
public GHUser[] getRequestedReviewers() throws IOException {
227+
public List<GHUser> getRequestedReviewers() throws IOException {
227228
populate();
228-
return requested_reviewers;
229+
return Collections.unmodifiableList(Arrays.asList(requested_reviewers));
229230
}
230231

231232
/**

0 commit comments

Comments
 (0)