context cleaning

master
Roman Shevchenko 11 years ago
parent 84d16304db
commit ef85e779c6
  1. 4
      src/de/fernflower/main/Fernflower.java
  2. 4
      src/de/fernflower/main/decompiler/IdeDecompiler.java

@ -66,6 +66,10 @@ public class Fernflower implements IDecompiledData {
structcontext.saveContext(); structcontext.saveContext();
} }
public void clearContext() {
DecompilerContext.setCurrentContext(null);
}
public String getClassEntryName(StructClass cl, String entryname) { public String getClassEntryName(StructClass cl, String entryname) {
ClassNode node = clprocessor.getMapRootClasses().get(cl.qualifiedName); ClassNode node = clprocessor.getMapRootClasses().get(cl.qualifiedName);

@ -44,7 +44,11 @@ public class IdeDecompiler {
} }
public void decompileContext() { public void decompileContext() {
try {
fernflower.decompileContext(); fernflower.decompileContext();
} finally {
fernflower.clearContext();
}
} }
} }

Loading…
Cancel
Save