1
0
mirror of https://github.com/square/okhttp.git synced 2025-11-26 06:43:09 +03:00

Merge pull request #2105 from square/jw/no-throws

Remove IOException from source() and streams.
This commit is contained in:
Jesse Wilson
2015-12-15 20:54:08 -05:00
6 changed files with 21 additions and 24 deletions

View File

@@ -84,7 +84,7 @@ public final class Progress {
return responseBody.contentLength();
}
@Override public BufferedSource source() throws IOException {
@Override public BufferedSource source() {
if (bufferedSource == null) {
bufferedSource = Okio.buffer(source(responseBody.source()));
}