文件整理,删除无用资源

This commit is contained in:
huangzhuanghua
2016-10-25 16:39:11 +08:00
parent 190296e533
commit 4471d95482
88 changed files with 2017 additions and 4560 deletions

View File

@ -176,9 +176,8 @@ public class DiskBasedCache implements Cache {
public synchronized void modify(String key, byte[] data) {
File file = getFileForKey(key);
CountingInputStream cis = null;
try {
cis = new CountingInputStream(new FileInputStream(file));
CountingInputStream cis = new CountingInputStream(new FileInputStream(file));
CacheHeader e = CacheHeader.readHeader(cis); // eat header
Entry entry = e.toCacheEntry(data);
cis.close();