private void replaceGregorianCalendarBooleanConstructor(ListIterator<AbstractInsnNode> instructions, MethodInsnNode targetMethod) {
    // Remove the call to GregorianCalendar(boolean)
    instructions.remove();

    // Discard the already-pushed parameter for GregorianCalendar(boolean)
    instructions.add(new InsnNode(Opcodes.POP));

    // Add parameters values for calling GregorianCalendar(int, int, int)
    instructions.add(new InsnNode(Opcodes.ICONST_0));
    instructions.add(new InsnNode(Opcodes.ICONST_0));
    instructions.add(new InsnNode(Opcodes.ICONST_0));

    // Call GregorianCalendar(int, int, int)
    instructions.add(new MethodInsnNode(Opcodes.INVOKESPECIAL, targetMethod.owner, targetMethod.name, "(III)V", targetMethod.itf));
  }
private void replaceGregorianCalendarBooleanConstructor(ListIterator<AbstractInsnNode> instructions, MethodInsnNode targetMethod) {
    
    instructions.remove();

    
    instructions.add(new InsnNode(Opcodes.POP));

    
    instructions.add(new InsnNode(Opcodes.ICONST_0));
    instructions.add(new InsnNode(Opcodes.ICONST_0));
    instructions.add(new InsnNode(Opcodes.ICONST_0));

    
    instructions.add(new MethodInsnNode(Opcodes.INVOKESPECIAL, targetMethod.owner, targetMethod.name, "(III)V", targetMethod.itf));
  }
private void replaceGregorianCalendarBooleanConstructor ( ListIterator < AbstractInsnNode > instructions , MethodInsnNode targetMethod ) { // Remove the call to GregorianCalendar(boolean) instructions . remove ( ) ; // Discard the already-pushed parameter for GregorianCalendar(boolean) instructions . add ( new InsnNode ( Opcodes . POP ) ) ; // Add parameters values for calling GregorianCalendar(int, int, int) instructions . add ( new InsnNode ( Opcodes . ICONST_0 ) ) ; instructions . add ( new InsnNode ( Opcodes . ICONST_0 ) ) ; instructions . add ( new InsnNode ( Opcodes . ICONST_0 ) ) ; // Call GregorianCalendar(int, int, int) instructions . add ( new MethodInsnNode ( Opcodes . INVOKESPECIAL , targetMethod . owner , targetMethod . name , "(III)V" , targetMethod . itf ) ) ; }
Replaces the void `<init>(boolean)` constructor for a call to the
`void <init>(int, int, int)` one.
Replaces the void <init > ( boolean ) constructor for a call to the void <init > ( int int int ) one .