public void visitCodeAttribute(Clazz clazz, Method method, CodeAttribute codeAttribute) { byte[] code = codeAttribute.code; byte[] oldCode = new byte[code.length]; // Copy the current code. System.arraycopy(code, 0, oldCode, 0, codeAttribute.u4codeLength); // Delegate to the real visitor. attributeVisitor.visitCodeAttribute(clazz, method, codeAttribute); // Check if the code has changed. if (codeHasChanged(codeAttribute, oldCode)) { printChangedCode(clazz, method, codeAttribute, oldCode); } }
public void visitCodeAttribute(Clazz clazz, Method method, CodeAttribute codeAttribute) { byte[] code = codeAttribute.code; byte[] oldCode = new byte[code.length]; // Copy the current code. System.arraycopy(code, 0, oldCode, 0, codeAttribute.u4codeLength); // Delegate to the real visitor. attributeVisitor.visitCodeAttribute(clazz, method, codeAttribute); // Check if the code has changed. if (codeHasChanged(codeAttribute, oldCode)) { printChangedCode(clazz, method, codeAttribute, oldCode); } }
public void visitCodeAttribute(Clazz clazz, Method method, CodeAttribute codeAttribute) { byte[] code = codeAttribute.code; byte[] oldCode = new byte[code.length]; // Copy the current code. System.arraycopy(code, 0, oldCode, 0, codeAttribute.u4codeLength); // Delegate to the real visitor. attributeVisitor.visitCodeAttribute(clazz, method, codeAttribute); // Check if the code has changed. if (codeHasChanged(codeAttribute, oldCode)) { printChangedCode(clazz, method, codeAttribute, oldCode); } }
public void visitCodeAttribute(Clazz clazz, Method method, CodeAttribute codeAttribute) { byte[] code = codeAttribute.code; byte[] oldCode = new byte[code.length]; // Copy the current code. System.arraycopy(code, 0, oldCode, 0, codeAttribute.u4codeLength); // Delegate to the real visitor. attributeVisitor.visitCodeAttribute(clazz, method, codeAttribute); // Check if the code has changed. if (codeHasChanged(codeAttribute, oldCode)) { printChangedCode(clazz, method, codeAttribute, oldCode); } }