feat: support custom shell generator (#49)

This commit is contained in:
ReaJason
2025-03-24 16:20:11 +08:00
parent efb5ae4e91
commit 241df2c24b
18 changed files with 313 additions and 68 deletions
@@ -13,7 +13,7 @@ public class ClassBytesShrink {
public static byte[] shrink(byte[] bytes, boolean full) {
ClassReader cr = new ClassReader(bytes);
ClassWriter cw = new ClassWriter(0);
ClassWriter cw = new ClassWriter(ClassWriter.COMPUTE_MAXS);
ClassVisitor cv = new ClassVisitor(Opcodes.ASM9, cw) {
@Override
public void visitSource(String source, String debug) {