use of net.runelite.asm.objectwebasm.NonloadingClassWriter in project runelite by runelite.
the class JarUtil method writeClass.
public static byte[] writeClass(ClassGroup group, ClassFile cf) {
ClassWriter writer = new NonloadingClassWriter(group, ClassWriter.COMPUTE_FRAMES | ClassWriter.COMPUTE_MAXS);
CheckClassAdapter cca = new CheckClassAdapter(writer, false);
cf.accept(cca);
byte[] data = writer.toByteArray();
validateDataFlow(cf.getName(), data);
return data;
}
Aggregations