Skip to content

Commit

Permalink
Fix regression introduced by #18.
Browse files Browse the repository at this point in the history
Cache.Entry is a class, not an interface; its methods should never
have been made package-private as they were part of the public
Volley API.
  • Loading branch information
jpd236 committed Aug 8, 2017
1 parent e1d75bc commit d100bad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/android/volley/Cache.java
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,12 @@ class Entry {
public Map<String, String> responseHeaders = Collections.emptyMap();

/** True if the entry is expired. */
boolean isExpired() {
public boolean isExpired() {
return this.ttl < System.currentTimeMillis();
}

/** True if a refresh is needed from the original data source. */
boolean refreshNeeded() {
public boolean refreshNeeded() {
return this.softTtl < System.currentTimeMillis();
}
}
Expand Down

0 comments on commit d100bad

Please sign in to comment.