CodeAttribute codeAttribute = methodInfo.getCodeAttribute();
if (codeAttribute != null) {
CodeIterator iterator = codeAttribute.iterator();
int i, length = iterator.getCodeLength() - 1;
for (i = index; i < length; i++) {
iterator.writeByte(Opcode.NOP, i);
}
iterator.writeByte(Opcode.RETURN, i);
methodInfo.rebuildStackMapIf6(ctClass.getClassPool(), ctClass.getClassFile2());
}
}