byte[] b = (byte[]) classes.get(j);
ClassWriter cw = new ClassWriter(0);
ClassVisitor cv = new ClassAdapter(cw) {
public MethodVisitor visitMethod(int access, String name,
String desc, String signature, String[] exceptions) {
return new RemoveGetFieldPutFieldAdapter(cv.visitMethod(
access, name, desc, signature, exceptions));
}
};
new ClassReader(b).accept(cv, 0);
cw.toByteArray();