By convention we use "listXyz" method names

This commit is contained in:
Kohsuke Kawaguchi
2018-01-12 21:06:47 -08:00
parent 35ba267115
commit 43075faaf8
2 changed files with 4 additions and 5 deletions

View File

@@ -164,7 +164,7 @@ public class GitHubTest {
GitHub hub = GitHub.connect();
int iterations = 10;
Set<Long> orgIds = new HashSet<Long>();
for (GHOrganization org : Iterables.limit(hub.getOrganizations().withPageSize(2), iterations)) {
for (GHOrganization org : Iterables.limit(hub.listOrganizations().withPageSize(2), iterations)) {
orgIds.add(org.getId());
System.out.println(org.getName());
}