context cleaning

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

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

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

Loading…
Cancel
Save