From 4b2ee2da42bee9b502ec968aa1d928606bd2e43d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=F8=EDk?= Date: Thu, 11 Jul 2013 16:54:00 +0200 Subject: [PATCH] Issue #151 fixed memory caching --- trunk/src/com/jpexs/decompiler/flash/helpers/Cache.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/trunk/src/com/jpexs/decompiler/flash/helpers/Cache.java b/trunk/src/com/jpexs/decompiler/flash/helpers/Cache.java index 70cd6942b..19068b93d 100644 --- a/trunk/src/com/jpexs/decompiler/flash/helpers/Cache.java +++ b/trunk/src/com/jpexs/decompiler/flash/helpers/Cache.java @@ -87,7 +87,12 @@ public class Cache { } public boolean contains(Object key) { - return cacheFiles.containsKey(key); + if (storageType == STORAGE_FILES) { + return cacheFiles.containsKey(key); + } else if (storageType == STORAGE_MEMORY) { + return cacheMemory.containsKey(key); + } + return false; } public void clear() {