Create a base class for DASH downloading related tests
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=158129802
This commit is contained in:
parent
edbc2046e2
commit
5c2c3c5c63
@ -110,7 +110,8 @@ public final class SimpleCache implements Cache {
|
|||||||
@Override
|
@Override
|
||||||
public synchronized NavigableSet<CacheSpan> getCachedSpans(String key) {
|
public synchronized NavigableSet<CacheSpan> getCachedSpans(String key) {
|
||||||
CachedContent cachedContent = index.get(key);
|
CachedContent cachedContent = index.get(key);
|
||||||
return cachedContent == null ? null : new TreeSet<CacheSpan>(cachedContent.getSpans());
|
return cachedContent == null || cachedContent.isEmpty() ? null
|
||||||
|
: new TreeSet<CacheSpan>(cachedContent.getSpans());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user