Skip to content

Commit

Permalink
修复android 5.0 StackOverflow
Browse files Browse the repository at this point in the history
  • Loading branch information
wyouflf committed Nov 11, 2014
1 parent b21559d commit 4ba8b09
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions library/src/com/lidroid/xutils/cache/KeyExpiryMap.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,11 @@ public synchronized Long put(K key, Long expiryTimestamp) {
@Override
public synchronized boolean containsKey(Object key) {
boolean result = false;
if (super.containsKey(key)) {
Long expiryTimestamp = super.get(key);
if (expiryTimestamp != null && System.currentTimeMillis() < expiryTimestamp) {
result = true;
} else {
this.remove(key);
}
Long expiryTimestamp = super.get(key);
if (expiryTimestamp != null && System.currentTimeMillis() < expiryTimestamp) {
result = true;
} else {
this.remove(key);
}
return result;
}
Expand Down

0 comments on commit 4ba8b09

Please sign in to comment.