Upgrading errorprone to 2.10

This commit is contained in:
Petri Tuomola
2021-11-06 18:28:21 +08:00
committed by Petri Tuomola
parent b89763ce05
commit d8d383e054
3 changed files with 4 additions and 4 deletions
@@ -110,7 +110,7 @@ public class PortfolioCommandSourceWritePlatformServiceImpl implements Portfolio
if (numberOfRetries >= maxNumberOfRetries) {
LOG.warn("The following command {} has been retried for the max allowed attempts of {} and will be rolled back",
command.json(), numberOfRetries);
throw (exception);
throw exception;
}
/***
* Else sleep for a random time (between 1 to 10 seconds) and continue
@@ -120,7 +120,7 @@ public class PortfolioCommandSourceWritePlatformServiceImpl implements Portfolio
Thread.sleep(1000 + (randomNum * 1000));
numberOfRetries = numberOfRetries + 1;
} catch (InterruptedException e) {
throw (exception);
throw exception;
}
} catch (final RollbackTransactionAsCommandIsNotApprovedByCheckerException e) {
numberOfRetries = maxNumberOfRetries + 1;