Browse files

Fix compilation errors caused due to API changes in new version of Di…

…skLruCache
  • Loading branch information...
1 parent 9c7f9c8 commit cfbd600b240862ebe96a80147497c37650f9f0d3 @candrews committed Nov 13, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/main/java/com/integralblue/httpresponsecache/HttpResponseCache.java
View
4 src/main/java/com/integralblue/httpresponsecache/HttpResponseCache.java
@@ -181,7 +181,7 @@ public static HttpResponseCache install(File directory, long maxSize) throws IOE
// don't close and reopen if an equivalent cache is already installed
DiskLruCache installedCache = installed.delegate.getCache();
if (installedCache.getDirectory().equals(directory)
- && installedCache.maxSize() == maxSize
+ && installedCache.getMaxSize() == maxSize
&& !installedCache.isClosed()) {
return installed;
} else {
@@ -224,7 +224,7 @@ public long size() {
* its data.
*/
public long maxSize() {
- return delegate.getCache().maxSize();
+ return delegate.getCache().getMaxSize();
}
/***

1 comment on commit cfbd600

@evigor

fuck!

Please sign in to comment.