mirror of
https://github.com/jlengrand/github-api.git
synced 2026-04-04 08:21:23 +00:00
Class clean up
We don't need two layers of PageIterator just to get the final response. Also made iterators thread-safe. And added more detailed comments.
This commit is contained in:
@@ -290,7 +290,7 @@ class GitHubResponse<T> {
|
||||
/**
|
||||
* Gets the body of the response as a {@link String}.
|
||||
*
|
||||
* @return the body of the response as a {@link String}.F
|
||||
* @return the body of the response as a {@link String}.
|
||||
* @throws IOException
|
||||
* if an I/O Exception occurs.
|
||||
*/
|
||||
@@ -302,7 +302,6 @@ class GitHubResponse<T> {
|
||||
} finally {
|
||||
IOUtils.closeQuietly(r);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user