diff --git a/src/main/java/org/kohsuke/github/GHOrganization.java b/src/main/java/org/kohsuke/github/GHOrganization.java index 2ea7ef22d2..3f3d3b97d9 100644 --- a/src/main/java/org/kohsuke/github/GHOrganization.java +++ b/src/main/java/org/kohsuke/github/GHOrganization.java @@ -598,7 +598,6 @@ public PagedIterable listEvents() throws IOException { * List all the repositories using a default of 30 items page size. * * @return the paged iterable - * @deprecated Use #listRepositories().withPageSize() instead. */ @Override public PagedIterable listRepositories() { diff --git a/src/main/java/org/kohsuke/github/PagedIterable.java b/src/main/java/org/kohsuke/github/PagedIterable.java index ac332a89fd..a92d0ef693 100644 --- a/src/main/java/org/kohsuke/github/PagedIterable.java +++ b/src/main/java/org/kohsuke/github/PagedIterable.java @@ -37,9 +37,6 @@ public abstract class PagedIterable implements Iterable { * @return the paged iterable */ public PagedIterable withPageSize(int size) { - if (size < 0) { - size = 0; - } this.pageSize = size; return this; }