context cleaning

This commit is contained in:
Roman Shevchenko 2014-07-03 15:21:11 +02:00
parent 84d16304db
commit ef85e779c6
2 changed files with 12 additions and 4 deletions

View File

@ -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);

View File

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