Following the convention with GHMyself.getEmails2()

This way the method is more discoverable with IDE auto-completion
This commit is contained in:
Kohsuke Kawaguchi
2016-06-02 22:05:24 -07:00
parent 2508e022bb
commit 3c5592c1c8

View File

@@ -936,7 +936,7 @@ public class GHRepository extends GHObject {
/**
* Lists all the users who have starred this repo based on the old version of the API. For
* additional information, like date when the repository was starred, see {@link #listExtendedStargazers()}
* additional information, like date when the repository was starred, see {@link #listStargazers2()}
*/
public PagedIterable<GHUser> listStargazers() {
return listUsers("stargazers");
@@ -947,7 +947,7 @@ public class GHRepository extends GHObject {
* information like the time when the repository was starred. For compatibility with the old API
* see {@link #listStargazers()}
*/
public PagedIterable<GHStargazer> listExtendedStargazers() {
public PagedIterable<GHStargazer> listStargazers2() {
return new PagedIterable<GHStargazer>() {
@Override
public PagedIterator<GHStargazer> _iterator(int pageSize) {