Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions fineract-provider/config/checkstyle/checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<property name="customImportOrderRules" value="STATIC###THIRD_PARTY_PACKAGE"/>
</module>
<module name="OneStatementPerLine"/>

<module name="EmptyStatement"/>
<!-- TODO Enable many more checks (go about this one by one, step by step, raise separate PRs fixing and then enforcing):

<module name="HiddenField">
Expand All @@ -68,7 +68,6 @@
<property name="ignoreSetter" value="true" />
<property name="setterCanReturnItsClass" value="true" />
</module>
<module name="EmptyStatement"/>
<module name="FinalClass"/>
<module name="HideUtilityClassConstructor"/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public void testInterestChargedFromDateSameAsDisbursalDate(){
.toString();
Integer updateConfigId = this.globalConfigurationHelper
.updateEnabledFlagForGlobalConfiguration(this.requestSpec, this.responseSpec,
configId.toString(), newBooleanValue);;
configId.toString(), newBooleanValue);
Assert.assertNotNull(updateConfigId);
break;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,17 +73,17 @@ public Integer updateProvisioningEntry(final String command, final Integer entry
}

public Map retrieveProvisioningEntry(final Integer provisioningEntry) {
String url = "/fineract-provider/api/v1/provisioningentries/"+provisioningEntry+"?"+Utils.TENANT_IDENTIFIER; ;
String url = "/fineract-provider/api/v1/provisioningentries/"+provisioningEntry+"?"+Utils.TENANT_IDENTIFIER;
return Utils.performServerGet(requestSpec, responseSpec, url, "") ;
}

public Map retrieveProvisioningEntries(final Integer provisioningEntry) {
String url = "/fineract-provider/api/v1/provisioningentries/entries?entryId="+provisioningEntry+"&"+Utils.TENANT_IDENTIFIER; ;
String url = "/fineract-provider/api/v1/provisioningentries/entries?entryId="+provisioningEntry+"&"+Utils.TENANT_IDENTIFIER;
return Utils.performServerGet(requestSpec, responseSpec, url, "") ;
}

public Map retrieveAllProvisioningEntries() {
String url = "/fineract-provider/api/v1/provisioningentries?dateFormat=dd MMMM yyyy"+"&"+"locale=en"+"&"+Utils.TENANT_IDENTIFIER; ;
String url = "/fineract-provider/api/v1/provisioningentries?dateFormat=dd MMMM yyyy"+"&"+"locale=en"+"&"+Utils.TENANT_IDENTIFIER;
return Utils.performServerGet(requestSpec, responseSpec, url, "") ;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ private CommandProcessingResult importCenter(int rowIndex,String dateFormat) {
gsonBuilder.registerTypeAdapter(LocalDate.class, new DateSerializer(dateFormat));
Type groupCollectionType = new TypeToken<Collection<GroupGeneralData>>() {}.getType();
gsonBuilder.registerTypeAdapter(groupCollectionType,new GroupIdSerializer());
String payload= gsonBuilder.create().toJson(centers.get(rowIndex));;
String payload= gsonBuilder.create().toJson(centers.get(rowIndex));
final CommandWrapper commandRequest = new CommandWrapperBuilder() //
.createCenter() //
.withJson(payload) //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ private CommandProcessingResult importGroup(int rowIndex, String dateFormat) {
gsonBuilder.registerTypeAdapter(LocalDate.class, new DateSerializer(dateFormat));
Type clientCollectionType = new TypeToken<Collection<ClientData>>() {}.getType();
gsonBuilder.registerTypeAdapter(clientCollectionType,new ClientIdSerializer());
String payload= gsonBuilder.create().toJson(groups.get(rowIndex));;
String payload= gsonBuilder.create().toJson(groups.get(rowIndex));
final CommandWrapper commandRequest = new CommandWrapperBuilder() //
.createGroup() //
.withJson(payload) //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ public Count importEntity(String dateFormat) {
CommandProcessingResult result=null;
loanId="";
try {
String status = statuses.get(i);;
String status = statuses.get(i);
progressLevel = getProgressLevel(status);

if (progressLevel == 0&& loans.get(i)!=null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ public Count importEntity(String dateFormat) {

if (progressLevel == 0) {
CommandProcessingResult result = importSavings(i,dateFormat);
savingsId = result.getSavingsId();;
savingsId = result.getSavingsId();
progressLevel = 1;
} else
savingsId = ImportHandlerUtils.readAsLong(SavingsConstants.SAVINGS_ID_COL, savingsSheet.getRow(savings.get(i).getRowIndex()));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ private List<SavingsAccountData> fetchSavingsAccounts(Long officeId) {
if (officeId!=null) {
String activeAccounts="sa.status_enum = 300";
SearchParameters searchParameters = SearchParameters.from(activeAccounts, officeId, null, null, null);
savingsAccounts = savingsAccountReadPlatformService.retrieveAll(searchParameters).getPageItems();;
savingsAccounts = savingsAccountReadPlatformService.retrieveAll(searchParameters).getPageItems();
}else {
savingsAccounts= savingsAccountReadPlatformService.retrieveAll(null).getPageItems();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public CommandProcessingResult deleteProvisioningCriteria(Long criteriaId) {
if(this.provisioningEntriesReadPlatformService.retrieveProvisioningEntryDataByCriteriaId(criteriaId) != null) {
throw new ProvisioningCriteriaCannotBeDeletedException(criteriaId) ;
}
this.provisioningCriteriaRepository.deleteById(criteriaId); ;
this.provisioningCriteriaRepository.deleteById(criteriaId);
return new CommandProcessingResultBuilder().withEntityId(criteriaId).build();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,18 +118,18 @@ private Address(final String street, final String addressLine1, final String add
this.latitude = latitude;
this.longitude = longitude;
this.createdBy = createdBy;
//this.createdOn = createdOn;
// this.createdOn = createdOn;
this.updatedBy = updatedBy;
//this.updatedOn = updatedOn;
// this.updatedOn = updatedOn;

if (createdOn != null) {
this.createdOn = createdOn.toDate();
if (createdOn != null) {
this.createdOn = createdOn.toDate();

}
}

if (updatedOn != null) {
this.updatedOn = updatedOn.toDate();
}
if (updatedOn != null) {
this.updatedOn = updatedOn.toDate();
}

}

Expand Down Expand Up @@ -167,8 +167,6 @@ public static Address fromJson(final JsonCommand command, final CodeValue stateP

final LocalDate updatedOn = command.localDateValueOfParameterNamed("updatedOn");



return new Address(street, addressLine1, addressLine2, addressLine3, townVillage, city, countyDistrict,
stateProvince, country, postalCode, latitude, longitude, createdBy, createdOn, updatedBy, updatedOn);
}
Expand Down Expand Up @@ -384,7 +382,7 @@ public Date getUpdatedOn() {
}

public void setUpdatedOn(LocalDate updatedOn) {
this.updatedOn = updatedOn.toDate();;
this.updatedOn = updatedOn.toDate();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ public static LoanTransactionData LoanTransactionDataForDisbursalTemplate(final
final PaymentDetailData paymentDetailData = null;
final CurrencyData currency = null;
final BigDecimal unrecognizedIncomePortion = null;
final BigDecimal principalPortion = null;;
final BigDecimal principalPortion = null;
final BigDecimal interestPortion = null;
final BigDecimal feeChargesPortion = null;
final BigDecimal penaltyChargesPortion = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ public void validateTaxGroupEndDateAndTaxComponent(final TaxGroup taxGroup, fina
.validateDateAfter(existing.startDate());
}
if(mapping.getTaxComponent()!= null && !existing.getTaxComponent().getId().equals(mapping.getTaxComponent().getId())){
baseDataValidator.reset().parameter(TaxApiConstants.taxComponentIdParamName).failWithCode("update.not.supported");;
baseDataValidator.reset().parameter(TaxApiConstants.taxComponentIdParamName).failWithCode("update.not.supported");
}
} else if (mapping.endDate() != null) {
baseDataValidator.reset().parameter(TaxApiConstants.endDateParamName).failWithCode("not.supported.for.new.association");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public String editSurvey(@PathParam("id") final Long id, final SurveyData survey
public void activateOrDeactivateSurvey(@PathParam("id") final Long id, @QueryParam("command") final String command) {
this.securityContext.authenticatedUser();
if(command != null && command.equalsIgnoreCase("activate")){
this.spmService.activateSurvey(id);;
this.spmService.activateSurvey(id);
}else if(command != null && command.equalsIgnoreCase("deactivate")){
this.spmService.deactivateSurvey(id);
}else{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public List<Question> getQuestions() {

public void setQuestions(List<Question> questions) {
if(this.questions != null){
this.questions.clear();;
this.questions.clear();
}else{
this.questions = new ArrayList<>();
}
Expand Down