1
0
mirror of https://github.com/square/okhttp.git synced 2026-01-17 08:42:25 +03:00

Do not burden application code with close failures.

There's no action they can take as the result of them, anyway.
This commit is contained in:
Jake Wharton
2015-12-17 19:24:43 -05:00
parent 9ecff8f961
commit 9566ccfa26

View File

@@ -88,8 +88,8 @@ public abstract class ResponseBody implements Closeable {
return contentType != null ? contentType.charset(UTF_8) : UTF_8;
}
@Override public void close() throws IOException {
source().close();
@Override public void close() {
Util.closeQuietly(source());
}
/**