Remove fetchArray method

This commit is contained in:
Liam Newman
2020-02-24 08:26:04 -08:00
parent 9e8bbfd175
commit d77b99d3d4
6 changed files with 54 additions and 44 deletions

View File

@@ -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.
*