/** * Removes the given interface. */ public void removeInterface(int interfaceConstantIndex) { int interfacesCount = targetClass.u2interfacesCount; int[] interfaces = targetClass.u2interfaces; int interfaceIndex = findInterfaceIndex(interfaceConstantIndex); // Shift the interface entries. System.arraycopy(interfaces, interfaceIndex+1, interfaces, interfaceIndex, interfacesCount - interfaceIndex - 1); // Clear the last entry. interfaces[--targetClass.u2interfacesCount] = 0; }
/** * Removes the given interface. */ public void removeInterface(int interfaceConstantIndex) { int interfacesCount = targetClass.u2interfacesCount; int[] interfaces = targetClass.u2interfaces; int interfaceIndex = findInterfaceIndex(interfaceConstantIndex); // Shift the interface entries. System.arraycopy(interfaces, interfaceIndex+1, interfaces, interfaceIndex, interfacesCount - interfaceIndex - 1); // Clear the last entry. interfaces[--targetClass.u2interfacesCount] = 0; }
/** * Removes the given interface. */ public void removeInterface(int interfaceConstantIndex) { int interfacesCount = targetClass.u2interfacesCount; int[] interfaces = targetClass.u2interfaces; int interfaceIndex = findInterfaceIndex(interfaceConstantIndex); // Shift the interface entries. System.arraycopy(interfaces, interfaceIndex+1, interfaces, interfaceIndex, interfacesCount - interfaceIndex - 1); // Clear the last entry. interfaces[--targetClass.u2interfacesCount] = 0; }
/** * Removes the given interface. */ public void removeInterface(int interfaceConstantIndex) { int interfacesCount = targetClass.u2interfacesCount; int[] interfaces = targetClass.u2interfaces; int interfaceIndex = findInterfaceIndex(interfaceConstantIndex); // Shift the interface entries. System.arraycopy(interfaces, interfaceIndex+1, interfaces, interfaceIndex, interfacesCount - interfaceIndex - 1); // Clear the last entry. interfaces[--targetClass.u2interfacesCount] = 0; }