Issue #151 Memory caching fixed

This commit is contained in:
Jindra Pet��k
2013-07-09 15:36:39 +02:00
parent 3855f189f1
commit 9a9ae18051
2 changed files with 6 additions and 5 deletions
@@ -356,6 +356,10 @@ public class DecompiledEditorPane extends LineMarkedEditorPane implements CaretL
}
setText("//" + translate("pleasewait") + "...");
this.abc = abc;
this.abcList = abcList;
this.script = scriptLeaf;
String hilightedCode = "";
cacheScriptPack(scriptLeaf, abcList);
CachedDecompilation cd = getCached(scriptLeaf);
@@ -363,10 +367,7 @@ public class DecompiledEditorPane extends LineMarkedEditorPane implements CaretL
highlights = cd.getHighlights();
traitHighlights = cd.getTraitHighlights();
methodHighlights = cd.getMethodHighlights();
classHighlights = cd.getClassHighlights();
this.abc = abc;
this.abcList = abcList;
this.script = scriptLeaf;
classHighlights = cd.getClassHighlights();
setText(hilightedCode);
}
@@ -127,7 +127,7 @@ public class Cache {
}
return null;
} else if (storageType == STORAGE_MEMORY) {
if (!cacheMemory.containsKey(key)) {
if (cacheMemory.containsKey(key)) {
return cacheMemory.get(key);
}
return null;