diff --git a/src/main/java/org/gitlab4j/api/Pager.java b/src/main/java/org/gitlab4j/api/Pager.java index ac00e8715001a8199c2e82933563cc2e69375653..30164de5ba0850cf2a3c723ebc98500240ef418e 100644 --- a/src/main/java/org/gitlab4j/api/Pager.java +++ b/src/main/java/org/gitlab4j/api/Pager.java @@ -255,9 +255,8 @@ public class Pager implements Iterator>, Constants { * Returns the first page of List. Will rewind the iterator. * * @return the first page of List - * @throws GitLabApiException if any error occurs */ - public List first() throws GitLabApiException { + public List first() { return (page(1)); } @@ -280,9 +279,8 @@ public class Pager implements Iterator>, Constants { * Returns the previous page of List. Will set the iterator to the previous page. * * @return the previous page of List - * @throws GitLabApiException if any error occurs */ - public List previous() throws GitLabApiException { + public List previous() { return (page(currentPage - 1)); } @@ -290,9 +288,8 @@ public class Pager implements Iterator>, Constants { * Returns the current page of List. * * @return the current page of List - * @throws GitLabApiException if any error occurs */ - public List current() throws GitLabApiException { + public List current() { return (page(currentPage)); }