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
+1 -1
View File
@@ -504,7 +504,7 @@ configure(project.fineractJavaProjects) {
// Configuration for the errorprone plugin
// https://github.com/tbroyer/gradle-errorprone-plugin
dependencies {
errorprone "com.google.errorprone:error_prone_core:2.9.0"
errorprone "com.google.errorprone:error_prone_core:2.10.0"
}
tasks.withType(JavaCompile) {
@@ -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;
@@ -182,7 +182,7 @@ public class ConcurrencyIntegrationTest {
LOG.info("Found an exception {}", e.getMessage());
LOG.info("Details of failed concurrent transaction (date, amount, loanId) are {},{},{}", repaymentDate, repaymentAmount,
loanId);
throw (e);
throw e;
}
LOG.info("Details of passed concurrent transaction, details (date, amount, loanId) are {},{},{}", repaymentDate,
repaymentAmount, loanId);