Unverified Commit ddd4304b authored by Jens Lidestrom's avatar Jens Lidestrom Committed by GitHub
Browse files

Make Pager constructor public (#965)

This allows clients to implement custom operation more easily.
parent 999b6fb7
...@@ -69,7 +69,7 @@ public class Pager<T> implements Iterator<List<T>>, Constants { ...@@ -69,7 +69,7 @@ public class Pager<T> implements Iterator<List<T>>, Constants {
* @param pathArgs HTTP path arguments * @param pathArgs HTTP path arguments
* @throws GitLabApiException if any error occurs * @throws GitLabApiException if any error occurs
*/ */
Pager(AbstractApi api, Class<T> type, int itemsPerPage, MultivaluedMap<String, String> queryParams, Object... pathArgs) throws GitLabApiException { public Pager(AbstractApi api, Class<T> type, int itemsPerPage, MultivaluedMap<String, String> queryParams, Object... pathArgs) throws GitLabApiException {
javaType = mapper.getTypeFactory().constructCollectionType(List.class, type); javaType = mapper.getTypeFactory().constructCollectionType(List.class, type);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment