File tree Expand file tree Collapse file tree
main/java/org/kohsuke/github
test/java/org/kohsuke/github Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3535 */
3636public class GHUser extends GHPerson {
3737
38- public List <GHKey > listKeys () throws IOException {
39- return Collections .unmodifiableList (Arrays .asList (root .retrieve ().to ("/users/" + login + "/ keys" , GHKey [].class )));
38+ public List <GHKey > getKeys () throws IOException {
39+ return Collections .unmodifiableList (Arrays .asList (root .retrieve ().to (getApiTailUrl ( " keys") , GHKey [].class )));
4040 }
4141
4242 /**
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ private Set<GHUser> count30(PagedIterable<GHUser> l) {
3030 @ Test
3131 public void getKeys () throws IOException {
3232 GHUser u = gitHub .getUser ("rtyler" );
33- List <GHKey > ghKeys = new ArrayList <>(u .listKeys ());
33+ List <GHKey > ghKeys = new ArrayList <>(u .getKeys ());
3434
3535 assertEquals (3 , ghKeys .size ());
3636 Collections .sort (ghKeys , new Comparator <GHKey >() {
You can’t perform that action at this time.
0 commit comments