private boolean isExpectedParmInstruction(int seen, int parmOffset, Type type) { switch (getExpectedReturnInstruction(type)) { case Const.ARETURN: return isExpectedParmInstruction(Const.ALOAD_0, Const.ALOAD, seen, parmOffset); case Const.DRETURN: return isExpectedParmInstruction(Const.DLOAD_0, Const.DLOAD, seen, parmOffset); case Const.FRETURN: return isExpectedParmInstruction(Const.FLOAD_0, Const.FLOAD, seen, parmOffset); case Const.LRETURN: return isExpectedParmInstruction(Const.LLOAD_0, Const.LLOAD, seen, parmOffset); default: return isExpectedParmInstruction(Const.ILOAD_0, Const.ILOAD, seen, parmOffset); } }
private boolean isExpectedParmInstruction(int seen, int parmOffset, Type type) { switch (getExpectedReturnInstruction(type)) { case Constants.ARETURN: return isExpectedParmInstruction(Constants.ALOAD_0, Constants.ALOAD, seen, parmOffset); case Constants.DRETURN: return isExpectedParmInstruction(Constants.DLOAD_0, Constants.DLOAD, seen, parmOffset); case Constants.FRETURN: return isExpectedParmInstruction(Constants.FLOAD_0, Constants.FLOAD, seen, parmOffset); case Constants.LRETURN: return isExpectedParmInstruction(Constants.LLOAD_0, Constants.LLOAD, seen, parmOffset); default: return isExpectedParmInstruction(Constants.ILOAD_0, Constants.ILOAD, seen, parmOffset); } }
int expectedInstruction = getExpectedReturnInstruction(getMethod().getReturnType()); if ((seen == expectedInstruction) && (getNextPC() == getCode().getCode().length)) { bugReporter.reportBug(
int expectedInstruction = getExpectedReturnInstruction(getMethod().getReturnType()); if ((seen == expectedInstruction) && (getNextPC() == getCode().getCode().length)) { bugReporter.reportBug(