if (hook != null) { if (!seenStatic) { CodeVisitor v = outer.visitMethod(Constants.ACC_STATIC, Constants.SIG_STATIC.getName(), Constants.SIG_STATIC.getDescriptor(), null, null); v.visitInsn(Constants.RETURN); v.visitMaxs(0, 0); } ended = true; hook.return_value(); hook.end_method();
if (staticInit != null) { staticHook.return_value(); staticHook.end_method(); rawStaticInit.visitInsn(Constants.RETURN); rawStaticInit.visitMaxs(0, 0); staticInit = staticHook = null; staticHookSig = null;
    public void end_class() {        if (seenStatic && hook == null) {            getStaticHook(); // force hook method creation        }        if (hook != null) {            if (!seenStatic) {                CodeVisitor v = outer.visitMethod(Constants.ACC_STATIC,                                                  Constants.SIG_STATIC.getName(),                                                  Constants.SIG_STATIC.getDescriptor(),                                                  null,                                                  null);                v.visitInsn(Constants.RETURN);                v.visitMaxs(0, 0);            }            ended = true;            hook.return_value();            hook.end_method();        }        cv.visitEnd();    }