FINERACT-821 Added and Enforced WhitespaceAround Checkstyle
This commit is contained in:
committed by
Michael Vorburger ⛑️
parent
e78bf84ae8
commit
f6f1af9e95
@@ -127,6 +127,16 @@
|
||||
<message key="name.invalidPattern"
|
||||
value="Method name ''{0}'' must match pattern ''{1}''."/>
|
||||
</module>
|
||||
<module name="WhitespaceAround">
|
||||
<property name="allowEmptyConstructors" value="true"/>
|
||||
<property name="allowEmptyMethods" value="true"/>
|
||||
<property name="allowEmptyTypes" value="true"/>
|
||||
<property name="allowEmptyLoops" value="true"/>
|
||||
<message key="ws.notFollowed"
|
||||
value="WhitespaceAround: ''{0}'' is not followed by whitespace."/>
|
||||
<message key="ws.notPreceded"
|
||||
value="WhitespaceAround: ''{0}'' is not preceded with whitespace."/>
|
||||
</module>
|
||||
<!-- TODO Enable many more checks (go about this one by one, step by step, raise separate PRs fixing and then enforcing):
|
||||
|
||||
<module name="HiddenField">
|
||||
@@ -157,16 +167,7 @@
|
||||
<property name="option" value="alone"/>
|
||||
<property name="tokens" value="CLASS_DEF, METHOD_DEF, CTOR_DEF, LITERAL_FOR, STATIC_INIT, INSTANCE_INIT"/>
|
||||
</module>
|
||||
<module name="WhitespaceAround">
|
||||
<property name="allowEmptyConstructors" value="true"/>
|
||||
<property name="allowEmptyMethods" value="true"/>
|
||||
<property name="allowEmptyTypes" value="true"/>
|
||||
<property name="allowEmptyLoops" value="true"/>
|
||||
<message key="ws.notFollowed"
|
||||
value="WhitespaceAround: ''{0}'' is not followed by whitespace."/>
|
||||
<message key="ws.notPreceded"
|
||||
value="WhitespaceAround: ''{0}'' is not preceded with whitespace."/>
|
||||
</module>
|
||||
|
||||
<module name="ParenPad" />
|
||||
|
||||
<module name="MultipleVariableDeclarations"/>
|
||||
|
||||
+2
-1
@@ -393,7 +393,8 @@ public class Charge extends AbstractPersistableCustom {
|
||||
}
|
||||
}
|
||||
|
||||
if (isLoanCharge()) {// validate only for loan charge
|
||||
// validate only for loan charge
|
||||
if (isLoanCharge()) {
|
||||
final String paymentModeParamName = "chargePaymentMode";
|
||||
if (command.isChangeInIntegerParameterNamed(paymentModeParamName, this.chargePaymentMode)) {
|
||||
final Integer newValue = command.integerValueOfParameterNamed(paymentModeParamName);
|
||||
|
||||
+3
-3
@@ -225,7 +225,7 @@ public class LoanUtilService {
|
||||
private LocalDate calculateRepaymentStartingFromDate(final LocalDate actualDisbursementDate, final Loan loan, final Calendar calendar,
|
||||
final CalendarHistoryDataWrapper calendarHistoryDataWrapper) {
|
||||
LocalDate calculatedRepaymentsStartingFromDate = loan.getExpectedFirstRepaymentOnDate();
|
||||
if (calendar != null) {// sync repayments
|
||||
if (calendar != null) { // sync repayments
|
||||
|
||||
if (calculatedRepaymentsStartingFromDate == null && !calendar.getCalendarHistory().isEmpty()
|
||||
&& calendarHistoryDataWrapper != null) {
|
||||
@@ -243,8 +243,8 @@ public class LoanUtilService {
|
||||
// need to have minimum number of days gap between disbursement
|
||||
// and first repayment date.
|
||||
final LoanProductRelatedDetail repaymentScheduleDetails = loan.repaymentScheduleDetail();
|
||||
if (repaymentScheduleDetails != null) {// Not expecting to be
|
||||
// null
|
||||
// Not expecting to be null
|
||||
if (repaymentScheduleDetails != null) {
|
||||
final Integer repayEvery = repaymentScheduleDetails.getRepayEvery();
|
||||
final String frequency = CalendarUtils
|
||||
.getMeetingFrequencyFromPeriodFrequencyType(repaymentScheduleDetails.getRepaymentPeriodFrequencyType());
|
||||
|
||||
Reference in New Issue
Block a user