mirror of
https://github.com/jlengrand/github-api.git
synced 2026-04-04 08:21:23 +00:00
Remove fetchArray method
This commit is contained in:
@@ -68,21 +68,6 @@ class Requester extends GitHubRequest.Builder<Requester> {
|
||||
return client.sendRequest(this, (responseInfo) -> GitHubResponse.parseBody(responseInfo, type)).body();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sends a request and parses the response into an array of the given type via databinding.
|
||||
*
|
||||
* @param <T>
|
||||
* the type parameter
|
||||
* @param type
|
||||
* the type
|
||||
* @return an array of {@link T} elements
|
||||
* @throws IOException
|
||||
* if the server returns 4xx/5xx responses.
|
||||
*/
|
||||
public <T> T[] fetchArray(@Nonnull Class<T[]> type) throws IOException {
|
||||
return toIterable(client, type, null).toArray();
|
||||
}
|
||||
|
||||
/**
|
||||
* Like {@link #fetch(Class)} but updates an existing object instead of creating a new instance.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user