@Test public void testResetLabels() { InsnList insnList = newInsnList(); LabelNode labelNode = new LabelNode(); insnList.add(new InsnNode(55)); insnList.add(labelNode); insnList.add(new InsnNode(77)); Label label = labelNode.getLabel(); insnList.resetLabels(); assertNotNull(label); assertNotSame(label, labelNode.getLabel()); }
public void resetLabels() { AbstractInsnNode currentInsn = firstInsn; while (currentInsn != null) { if (currentInsn instanceof LabelNode) { ((LabelNode) currentInsn).resetLabel(); } currentInsn = currentInsn.nextInsn; } }
InsnList { public void resetLabels() { AbstractInsnNode currentInsn = firstInsn; while (currentInsn != null) { if (currentInsn instanceof LabelNode) { ((LabelNode) currentInsn).resetLabel(); } currentInsn = currentInsn.nextInsn; } } }
InsnList { public void resetLabels() { AbstractInsnNode currentInsn = firstInsn; while (currentInsn != null) { if (currentInsn instanceof LabelNode) { ((LabelNode) currentInsn).resetLabel(); } currentInsn = currentInsn.nextInsn; } }  }
InsnList { public void resetLabels() { AbstractInsnNode currentInsn = firstInsn; while (currentInsn != null) { if (currentInsn instanceof LabelNode) { ((LabelNode) currentInsn).resetLabel(); } currentInsn = currentInsn.nextInsn; } }  int size(); AbstractInsnNode getFirst(); AbstractInsnNode getLast(); AbstractInsnNode get(final int index); boolean contains(final AbstractInsnNode insnNode); int indexOf(final AbstractInsnNode insnNode); void accept(final MethodVisitor methodVisitor); ListIterator<AbstractInsnNode> iterator(); @SuppressWarnings("unchecked") ListIterator<AbstractInsnNode> iterator(final int index); AbstractInsnNode[] toArray(); void set(final AbstractInsnNode oldInsnNode, final AbstractInsnNode newInsnNode); void add(final AbstractInsnNode insnNode); void add(final InsnList insnList); void insert(final AbstractInsnNode insnNode); void insert(final InsnList insnList); void insert(final AbstractInsnNode previousInsn, final AbstractInsnNode insnNode); void insert(final AbstractInsnNode previousInsn, final InsnList insnList); void insertBefore(final AbstractInsnNode nextInsn, final AbstractInsnNode insnNode); void insertBefore(final AbstractInsnNode nextInsn, final InsnList insnList); void remove(final AbstractInsnNode insnNode); void clear(); void resetLabels(); }
InsnList { public void resetLabels() { AbstractInsnNode currentInsn = firstInsn; while (currentInsn != null) { if (currentInsn instanceof LabelNode) { ((LabelNode) currentInsn).resetLabel(); } currentInsn = currentInsn.nextInsn; } }  int size(); AbstractInsnNode getFirst(); AbstractInsnNode getLast(); AbstractInsnNode get(final int index); boolean contains(final AbstractInsnNode insnNode); int indexOf(final AbstractInsnNode insnNode); void accept(final MethodVisitor methodVisitor); ListIterator<AbstractInsnNode> iterator(); @SuppressWarnings("unchecked") ListIterator<AbstractInsnNode> iterator(final int index); AbstractInsnNode[] toArray(); void set(final AbstractInsnNode oldInsnNode, final AbstractInsnNode newInsnNode); void add(final AbstractInsnNode insnNode); void add(final InsnList insnList); void insert(final AbstractInsnNode insnNode); void insert(final InsnList insnList); void insert(final AbstractInsnNode previousInsn, final AbstractInsnNode insnNode); void insert(final AbstractInsnNode previousInsn, final InsnList insnList); void insertBefore(final AbstractInsnNode nextInsn, final AbstractInsnNode insnNode); void insertBefore(final AbstractInsnNode nextInsn, final InsnList insnList); void remove(final AbstractInsnNode insnNode); void clear(); void resetLabels();  }