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:
@@ -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());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user