mirror of
https://github.com/moparisthebest/fernflower
synced 2024-12-23 08:08:49 -05:00
context cleaning
This commit is contained in:
parent
84d16304db
commit
ef85e779c6
@ -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…
Reference in New Issue
Block a user