mirror of
https://github.com/square/okhttp.git
synced 2025-11-29 06:23:09 +03:00
Drop get and set prefixes in OkHttpClient, OkHttpClient.Builder
This commit is contained in:
@@ -36,7 +36,7 @@ public class AndroidInternal {
|
||||
// make the ResponseCache look like an InternalCache, we can unwrap the Cache instead.
|
||||
// This means that Cache stats will be correctly updated.
|
||||
OkCacheContainer okCacheContainer = (OkCacheContainer) responseCache;
|
||||
builder.setCache(okCacheContainer.getCache());
|
||||
builder.cache(okCacheContainer.getCache());
|
||||
} else {
|
||||
builder.setInternalCache(responseCache != null ? new CacheAdapter(responseCache) : null);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user