2
2
3
3
import static net .bytebuddy .jar .asm .Opcodes .ALOAD ;
4
4
import static net .bytebuddy .jar .asm .Opcodes .F_SAME ;
5
+ import static net .bytebuddy .jar .asm .Opcodes .GOTO ;
5
6
import static net .bytebuddy .jar .asm .Opcodes .H_INVOKESTATIC ;
6
7
import static net .bytebuddy .jar .asm .Opcodes .IFEQ ;
7
8
import static net .bytebuddy .jar .asm .Opcodes .IFNE ;
@@ -287,7 +288,7 @@ public void visitMethodInsn(
287
288
288
289
// Label doBlockLabel = new Label();
289
290
Label beforeRegularDispatch = new Label ();
290
- // Label afterRegularDispatch = new Label();
291
+ Label afterRegularDispatch = new Label ();
291
292
292
293
// Add current context to the stack
293
294
super .visitMethodInsn (
@@ -303,7 +304,7 @@ public void visitMethodInsn(
303
304
"hasRequestBlockingAction" ,
304
305
"(" + Type .getDescriptor (Context .class ) + ")Z" ,
305
306
false );
306
- // If no request blocking action, jump befor the regular dispatch
307
+ // If no request blocking action, jump before the regular dispatch
307
308
super .visitJumpInsn (IFEQ , beforeRegularDispatch );
308
309
309
310
// super.visitVarInsn(ALOAD, CONTEXT_VAR);
@@ -386,14 +387,14 @@ public void visitMethodInsn(
386
387
// invoke the dispatch method
387
388
super .visitMethodInsn (opcode , owner , name , descriptor , isInterface );
388
389
389
- // super.visitJumpInsn(GOTO, afterRegularDispatch);
390
+ super .visitJumpInsn (GOTO , afterRegularDispatch );
390
391
391
392
super .visitLabel (beforeRegularDispatch );
392
393
super .visitFrame (F_SAME , 0 , null , 0 , null );
393
394
mv .commitVisitations (savedVisitations );
394
395
super .visitMethodInsn (opcode , owner , name , descriptor , isInterface );
395
- // super.visitLabel(afterRegularDispatch);
396
- // super.visitFrame(F_SAME, 0, null, 0, null);
396
+ super .visitLabel (afterRegularDispatch );
397
+ super .visitFrame (F_SAME , 0 , null , 0 , null );
397
398
this .success = true ;
398
399
return ;
399
400
}
0 commit comments