mirror of
https://github.com/square/okhttp.git
synced 2025-11-27 18:21:14 +03:00
Run IntelliJ's analysis on OkHttp.
This made a few hundred suggestions, many of which are thoughtful but I'm deliberately ignoring anyway. The following fixes are good ideas.
This commit is contained in:
@@ -78,7 +78,7 @@ public final class CacheAdapter implements InternalCache {
|
||||
// cacheable or the client should be careful about caching it.
|
||||
}
|
||||
|
||||
@Override public void update(Response cached, Response network) throws IOException {
|
||||
@Override public void update(Response cached, Response network) {
|
||||
// This method is treated as optional and there is no obvious way of implementing it with
|
||||
// ResponseCache. Updating headers is useful if the server changes the metadata for a resource
|
||||
// (e.g. max age) to extend or truncate the life of that resource in the cache. If the metadata
|
||||
|
||||
Reference in New Issue
Block a user