Source:
public void performSaeDetailLineValidationForRequestedCashAdvances(ConcurStandardAccountingExtractDetailLine detailFileLine, List<String> uniqueRequestedCashAdvanceKeysInFile) { if (requestDetailFileLineIsCashAdvance(detailFileLine)) { boolean lineValidationPassed = true; lineValidationPassed = requestedCashAdvanceApprovedByConcurAdministrator(detailFileLine); LOG.info("requestedCashAdvanceApprovedByConcurAdministrator = " + lineValidationPassed); lineValidationPassed &= requestedCashAdvanceHasNotBeenClonedInFile(detailFileLine, uniqueRequestedCashAdvanceKeysInFile); LOG.info("requestedCashAdvanceHasNotBeenClonedInFile = " + lineValidationPassed); lineValidationPassed &= requestedCashAdvanceHasNotBeenUsedInExpenseReport(detailFileLine); LOG.info("requestedCashAdvanceHasNotBeenUsedInExpenseReport = " + lineValidationPassed); lineValidationPassed &= requestedCashAdvanceIsNotBeingDuplicated(detailFileLine); LOG.info("requestedCashAdvanceIsNotBeingDuplicated = " + lineValidationPassed); lineValidationPassed &= requestedCashAdvanceHasValidAddressWhenPaymentIsByCheck(detailFileLine); LOG.info("requestedCashAdvanceHasValidAddressWhenPaymentIsByCheck = " + lineValidationPassed); lineValidationPassed &= requestedCashAdvanceAccountingInformationIsValid(detailFileLine); LOG.info("requestedCashAdvanceAccountingInformationIsValid = " + lineValidationPassed); detailFileLine.getValidationResult().setValidCashAdvanceLine(lineValidationPassed); LOG.info("performSaeDetailLineValidationForRequestedCashAdvances: Detail File Line validation : " + ((lineValidationPassed) ? "PASSED" : ("FAILED" + KFSConstants.NEWLINE + detailFileLine.toString()))); } }

Target:
public void performSaeDetailLineValidationForRequestedCashAdvances(ConcurStandardAccountingExtractDetailLine detailFileLine, List<String> uniqueRequestedCashAdvanceKeysInFile) { if (requestDetailFileLineIsCashAdvance(detailFileLine)) { boolean lineValidationPassed = true; lineValidationPassed = requestedCashAdvanceApprovedByConcurAdministrator(detailFileLine); LOG.info("performSaeDetailLineValidationForRequestedCashAdvances: requestedCashAdvanceApprovedByConcurAdministrator = " + lineValidationPassed); lineValidationPassed &= requestedCashAdvanceHasNotBeenClonedInFile(detailFileLine, uniqueRequestedCashAdvanceKeysInFile); LOG.info("performSaeDetailLineValidationForRequestedCashAdvances: requestedCashAdvanceHasNotBeenClonedInFile = " + lineValidationPassed); lineValidationPassed &= requestedCashAdvanceHasNotBeenUsedInExpenseReport(detailFileLine); LOG.info("performSaeDetailLineValidationForRequestedCashAdvances: requestedCashAdvanceHasNotBeenUsedInExpenseReport = " + lineValidationPassed); lineValidationPassed &= requestedCashAdvanceIsNotBeingDuplicated(detailFileLine); LOG.info("performSaeDetailLineValidationForRequestedCashAdvances: requestedCashAdvanceIsNotBeingDuplicated = " + lineValidationPassed); lineValidationPassed &= requestedCashAdvanceHasValidAddressWhenPaymentIsByCheck(detailFileLine); LOG.info("performSaeDetailLineValidationForRequestedCashAdvances: requestedCashAdvanceHasValidAddressWhenPaymentIsByCheck = " + lineValidationPassed); lineValidationPassed &= requestedCashAdvanceAccountingInformationIsValid(detailFileLine); LOG.info("performSaeDetailLineValidationForRequestedCashAdvances: requestedCashAdvanceAccountingInformationIsValid = " + lineValidationPassed); detailFileLine.getValidationResult().setValidCashAdvanceLine(lineValidationPassed); LOG.info("performSaeDetailLineValidationForRequestedCashAdvances: Detail File Line validation : " + ((lineValidationPassed) ? "PASSED" : ("FAILED" + KFSConstants.NEWLINE + detailFileLine.toString()))); } }