mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-25 15:51:33 +00:00
Issue #151 Memory caching fixed
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user