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:
Liam Newman
2020-02-17 12:55:44 -08:00
parent b7af635a9a
commit acc5a89dff
7 changed files with 155 additions and 146 deletions

View File

@@ -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);
}
}
}