Upgrading errorprone to 2.10
This commit is contained in:
committed by
Petri Tuomola
parent
b89763ce05
commit
d8d383e054
+1
-1
@@ -504,7 +504,7 @@ configure(project.fineractJavaProjects) {
|
|||||||
// Configuration for the errorprone plugin
|
// Configuration for the errorprone plugin
|
||||||
// https://github.com/tbroyer/gradle-errorprone-plugin
|
// https://github.com/tbroyer/gradle-errorprone-plugin
|
||||||
dependencies {
|
dependencies {
|
||||||
errorprone "com.google.errorprone:error_prone_core:2.9.0"
|
errorprone "com.google.errorprone:error_prone_core:2.10.0"
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType(JavaCompile) {
|
tasks.withType(JavaCompile) {
|
||||||
|
|||||||
+2
-2
@@ -110,7 +110,7 @@ public class PortfolioCommandSourceWritePlatformServiceImpl implements Portfolio
|
|||||||
if (numberOfRetries >= maxNumberOfRetries) {
|
if (numberOfRetries >= maxNumberOfRetries) {
|
||||||
LOG.warn("The following command {} has been retried for the max allowed attempts of {} and will be rolled back",
|
LOG.warn("The following command {} has been retried for the max allowed attempts of {} and will be rolled back",
|
||||||
command.json(), numberOfRetries);
|
command.json(), numberOfRetries);
|
||||||
throw (exception);
|
throw exception;
|
||||||
}
|
}
|
||||||
/***
|
/***
|
||||||
* Else sleep for a random time (between 1 to 10 seconds) and continue
|
* 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));
|
Thread.sleep(1000 + (randomNum * 1000));
|
||||||
numberOfRetries = numberOfRetries + 1;
|
numberOfRetries = numberOfRetries + 1;
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
throw (exception);
|
throw exception;
|
||||||
}
|
}
|
||||||
} catch (final RollbackTransactionAsCommandIsNotApprovedByCheckerException e) {
|
} catch (final RollbackTransactionAsCommandIsNotApprovedByCheckerException e) {
|
||||||
numberOfRetries = maxNumberOfRetries + 1;
|
numberOfRetries = maxNumberOfRetries + 1;
|
||||||
|
|||||||
+1
-1
@@ -182,7 +182,7 @@ public class ConcurrencyIntegrationTest {
|
|||||||
LOG.info("Found an exception {}", e.getMessage());
|
LOG.info("Found an exception {}", e.getMessage());
|
||||||
LOG.info("Details of failed concurrent transaction (date, amount, loanId) are {},{},{}", repaymentDate, repaymentAmount,
|
LOG.info("Details of failed concurrent transaction (date, amount, loanId) are {},{},{}", repaymentDate, repaymentAmount,
|
||||||
loanId);
|
loanId);
|
||||||
throw (e);
|
throw e;
|
||||||
}
|
}
|
||||||
LOG.info("Details of passed concurrent transaction, details (date, amount, loanId) are {},{},{}", repaymentDate,
|
LOG.info("Details of passed concurrent transaction, details (date, amount, loanId) are {},{},{}", repaymentDate,
|
||||||
repaymentAmount, loanId);
|
repaymentAmount, loanId);
|
||||||
|
|||||||
Reference in New Issue
Block a user