File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/main/java/org/kohsuke/github Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ public List<GHPullRequest> getPullRequests() throws IOException {
117117 for (GHPullRequest singlePull : pullRequests ) {
118118 singlePull .refresh ();
119119 }
120- return Arrays .asList (pullRequests );
120+ return Collections . unmodifiableList ( Arrays .asList (pullRequests ) );
121121 }
122122 return Collections .emptyList ();
123123 }
Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ public List<GHPullRequest> getPullRequests() throws IOException {
165165 for (GHPullRequest singlePull : pullRequests ) {
166166 singlePull .refresh ();
167167 }
168- return Arrays .asList (pullRequests );
168+ return Collections . unmodifiableList ( Arrays .asList (pullRequests ) );
169169 }
170170 return Collections .emptyList ();
171171 }
You can’t perform that action at this time.
0 commit comments