Skip to content

Commit

Permalink
FINERACT-1971: Marking the fallback method as public so it works prop…
Browse files Browse the repository at this point in the history
…erly with Resilience4J
  • Loading branch information
galovics committed Nov 28, 2023
1 parent 3b46332 commit 35171c0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ public CommandProcessingResult logCommand(CommandSource commandSource) {
}

@SuppressWarnings("unused")
private CommandProcessingResult fallbackExecuteCommand(Exception e) {
public CommandProcessingResult fallbackExecuteCommand(Exception e) {
if (e instanceof RollbackTransactionAsCommandIsNotApprovedByCheckerException ex) {
return logCommand(ex.getCommandSourceResult());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ public boolean processJobDetailForExecution(final String jobKey, final String tr
}

@SuppressWarnings("unused")
private boolean fallbackProcessJobDetailForExecution(Exception e) {
public boolean fallbackProcessJobDetailForExecution(Exception e) {
return false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2426,7 +2426,7 @@ public CommandProcessingResult recoverFromGuarantor(final Long loanId) {
}

@SuppressWarnings("unused")
private void fallbackRecalculateInterest(Throwable t) {
public void fallbackRecalculateInterest(Throwable t) {
// NOTE: allow caller to catch the exceptions
// NOTE: wrap throwable only if really necessary
throw errorHandler.getMappable(t, null, null, "loan.recalculateinterest");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1378,8 +1378,8 @@ public void applyChargeDue(final Long savingsAccountChargeId, final Long account
}

@SuppressWarnings("unused")
private SavingsAccountData fallbackPostInterest(SavingsAccountData savingsAccountData, boolean postInterestAs,
LocalDate transactionDate, boolean backdatedTxnsAllowedTill, Throwable t) {
public SavingsAccountData fallbackPostInterest(SavingsAccountData savingsAccountData, boolean postInterestAs, LocalDate transactionDate,
boolean backdatedTxnsAllowedTill, Throwable t) {
// NOTE: allow caller to catch the exceptions
// NOTE: wrap throwable only if really necessary
throw errorHandler.getMappable(t, null, null, "savings.postinterest");
Expand Down

0 comments on commit 35171c0

Please sign in to comment.