mirror of
https://github.com/moparisthebest/fernflower
synced 2024-12-24 08:38:49 -05:00
context cleaning
This commit is contained in:
parent
84d16304db
commit
ef85e779c6
@ -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() {
|
||||||
fernflower.decompileContext();
|
try {
|
||||||
}
|
fernflower.decompileContext();
|
||||||
|
} finally {
|
||||||
|
fernflower.clearContext();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user