@Override protected void processMethodParms() { String nameConstantOperand = getNameConstantOperand(); // these requests are typically executed by being passed to an // "execute()" method. We know this doesn't // close the resource, we don't want to remove objects just because they // passed into this method if (!whiteListMethods.contains(nameConstantOperand)) { super.processMethodParms(); } }
@Override protected void processMethodParms() { String nameConstantOperand = getNameConstantOperand(); // these requests are typically executed by being passed to an // "execute()" method. We know this doesn't // close the resource, we don't want to remove objects just because they // passed into this method if (!whiteListMethods.contains(nameConstantOperand)) { super.processMethodParms(); } }
private Object sawInvokeSpecial(Object userObject) { Object returnValue = userObject; String methodName = getNameConstantOperand(); if (Values.CONSTRUCTOR.equals(methodName)) { String clsName = getDottedClassConstantOperand(); if (doesObjectNeedToBeWatched(clsName)) { returnValue = Boolean.TRUE; } } processMethodParms(); return returnValue; }
private Object sawInvokeSpecial(Object userObject) { Object returnValue = userObject; String methodName = getNameConstantOperand(); if (Values.CONSTRUCTOR.equals(methodName)) { String clsName = getDottedClassConstantOperand(); if (doesObjectNeedToBeWatched(clsName)) { returnValue = Boolean.TRUE; } } processMethodParms(); return returnValue; }
private void sawInvokeInterfaceVirtual() { String sig = getSigConstantOperand(); int numParms = SignatureUtils.getNumParameters(sig); if (stack.getStackDepth() > numParms) { OpcodeStack.Item item = stack.getStackItem(numParms); Object uo = item.getUserValue(); if (uo != null) { String name = getNameConstantOperand(); if (isMethodThatShouldBeCalled(name)) { clearUserValue(item); } else if (!"clone".equals(name)) { if ((!Values.SIG_VOID.equals(SignatureUtils.getReturnSignature(sig))) && !nextOpIsPop()) { clearUserValue(item); } } } } processMethodParms(); }
private void sawInvokeInterfaceVirtual() { String sig = getSigConstantOperand(); int numParms = SignatureUtils.getNumParameters(sig); if (stack.getStackDepth() > numParms) { OpcodeStack.Item item = stack.getStackItem(numParms); Object uo = item.getUserValue(); if (uo != null) { String name = getNameConstantOperand(); if (isMethodThatShouldBeCalled(name)) { clearUserValue(item); } else if (!"clone".equals(name)) { if ((!Values.SIG_VOID.equals(SignatureUtils.getReturnSignature(sig))) && !nextOpIsPop()) { clearUserValue(item); } } } } processMethodParms(); }
processMethodParms(); break; case ARETURN:
processMethodParms(); break; case Const.ARETURN: