mariiaKraievska commented on code in PR #4819:
URL: https://github.com/apache/fineract/pull/4819#discussion_r2176564541


##########
fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/service/LoanAccrualActivityProcessingServiceImpl.java:
##########
@@ -195,9 +195,10 @@ public void processAccrualActivityForLoanReopen(final 
@NonNull Loan loan) {
             return isDueBefore && isAfterOrEqualToLastAccrualDate;
         
}).sorted(Comparator.comparing(LoanRepaymentScheduleInstallment::getDueDate)).toList();
 
-        installments.forEach(installment -> {

Review Comment:
   Good question! I do like the stream forEach, but here I needed to reset the 
lastAccrualActivityMarkedToReverse variable after the first iteration. Since 
Java doesn't allow reassigning variables inside a lambda, I had to use the 
classic for-each loop to make this work :( 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to