Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b8bfddb

Browse filesBrowse files
committed
Code simplification
1 parent 47fc813 commit b8bfddb
Copy full SHA for b8bfddb

File tree

Expand file treeCollapse file tree

1 file changed

+3
-18
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-18
lines changed

‎src/main/java/org/kohsuke/github/GHRepository.java

Copy file name to clipboardExpand all lines: src/main/java/org/kohsuke/github/GHRepository.java
+3-18Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050
import java.util.Set;
5151
import java.util.TreeMap;
5252

53-
import static java.util.Arrays.asList;
54-
import static org.kohsuke.github.Previews.DRAX;
53+
import static java.util.Arrays.*;
54+
import static org.kohsuke.github.Previews.*;
5555

5656
/**
5757
* A repository on GitHub.
@@ -451,22 +451,7 @@ public GHPersonSet<GHUser> getCollaborators() throws IOException {
451451
* @throws IOException
452452
*/
453453
public PagedIterable<GHUser> listCollaborators() throws IOException {
454-
return new PagedIterable<GHUser>() {
455-
public PagedIterator<GHUser> _iterator(int pageSize) {
456-
457-
return new PagedIterator<GHUser>(root.retrieve().asIterator(getApiTailUrl("collaborators"), GHUser[].class, pageSize)) {
458-
459-
@Override
460-
protected void wrapUp(GHUser[] users) {
461-
for (GHUser user : users) {
462-
user.wrapUp(root);
463-
}
464-
}
465-
};
466-
467-
}
468-
};
469-
454+
return listUsers("collaborators");
470455
}
471456

472457
/**

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.