FINERACT-821 Added and Enforced FinalClass checkstyle
This commit is contained in:
committed by
Michael Vorburger ⛑️
parent
37769dc74e
commit
74b04cd4d3
@@ -57,6 +57,7 @@
|
||||
<property name="ignoreComments" value="false" />
|
||||
</module>
|
||||
<module name="EqualsHashCode"/>
|
||||
<module name="FinalClass"/>
|
||||
<module name="SeparatorWrap">
|
||||
<property name="tokens" value="COMMA"/>
|
||||
<property name="option" value="EOL"/>
|
||||
@@ -177,7 +178,7 @@
|
||||
<property name="ignoreSetter" value="true" />
|
||||
<property name="setterCanReturnItsClass" value="true" />
|
||||
</module>
|
||||
<module name="FinalClass"/>
|
||||
|
||||
<module name="HideUtilityClassConstructor"/>
|
||||
|
||||
< ! - - TODO Checks for Exception Handling Anti-Patterns - - >
|
||||
|
||||
+1
-1
@@ -40,7 +40,7 @@ import org.slf4j.LoggerFactory;
|
||||
*
|
||||
* @see org.apache.fineract.integrationtests.BatchApiTest
|
||||
*/
|
||||
public class BatchHelper {
|
||||
public final class BatchHelper {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(BatchHelper.class);
|
||||
private static final String BATCH_API_URL = "/fineract-provider/api/v1/batches?" + Utils.TENANT_IDENTIFIER;
|
||||
|
||||
+1
-1
@@ -28,7 +28,7 @@ public class CenterDomain implements Comparable<CenterDomain> {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(CenterDomain.class);
|
||||
|
||||
public static class Builder {
|
||||
public final static class Builder {
|
||||
|
||||
private final Integer id;
|
||||
private final String accountNo;
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ import com.google.gson.Gson;
|
||||
|
||||
public class CurrencyDomain implements Comparable<CurrencyDomain> {
|
||||
|
||||
public static class Builder {
|
||||
public final static class Builder {
|
||||
|
||||
private String code;
|
||||
private String name;
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@ import java.util.Arrays;
|
||||
|
||||
public class OfficeDomain {
|
||||
|
||||
public static class Builder {
|
||||
public final static class Builder {
|
||||
|
||||
private int id;
|
||||
private String name;
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@
|
||||
*/
|
||||
package org.apache.fineract.integrationtests.common;
|
||||
|
||||
public class PaymentTypeDomain {
|
||||
public final class PaymentTypeDomain {
|
||||
|
||||
private Integer id;
|
||||
private String name;
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ import com.google.gson.Gson;
|
||||
|
||||
public class FundsHelper {
|
||||
|
||||
public static class Builder {
|
||||
final public static class Builder {
|
||||
|
||||
private String name;
|
||||
private String externalId;
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ import java.util.List;
|
||||
import org.apache.fineract.accounting.glaccount.data.GLAccountData;
|
||||
import org.joda.time.LocalDate;
|
||||
|
||||
public class OfficeOpeningBalancesData {
|
||||
public final class OfficeOpeningBalancesData {
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private final Long officeId;
|
||||
|
||||
@@ -32,7 +32,7 @@ import org.apache.fineract.infrastructure.security.utils.SQLInjectionValidator;
|
||||
|
||||
@Entity
|
||||
@Table(name = "m_adhoc")
|
||||
public class AdHoc extends AbstractAuditableCustom {
|
||||
public final class AdHoc extends AbstractAuditableCustom {
|
||||
|
||||
@Column(name = "name", length = 100)
|
||||
private String name;
|
||||
|
||||
+2
-2
@@ -28,14 +28,14 @@ package org.apache.fineract.batch.command;
|
||||
*
|
||||
* @see org.apache.fineract.batch.service.BatchApiService
|
||||
*/
|
||||
public class CommandContext {
|
||||
public final class CommandContext {
|
||||
|
||||
/**
|
||||
* Static Builder class to provide a Build method for CommandContext.
|
||||
*
|
||||
* @author Rishabh Shukla
|
||||
*/
|
||||
public static class Builder {
|
||||
public final static class Builder {
|
||||
|
||||
private String resource;
|
||||
private String method;
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ package org.apache.fineract.infrastructure.bulkimport.data;
|
||||
import org.apache.poi.ss.usermodel.Workbook;
|
||||
import org.springframework.context.ApplicationEvent;
|
||||
|
||||
public class BulkImportEvent extends ApplicationEvent {
|
||||
public final class BulkImportEvent extends ApplicationEvent {
|
||||
|
||||
private final String tenantIdentifier;
|
||||
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@
|
||||
*/
|
||||
package org.apache.fineract.infrastructure.bulkimport.data;
|
||||
|
||||
public class Count {
|
||||
public final class Count {
|
||||
|
||||
private Integer successCount;
|
||||
private Integer errorCount;
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@ package org.apache.fineract.infrastructure.bulkimport.data;
|
||||
|
||||
import org.joda.time.LocalDate;
|
||||
|
||||
public class ImportData {
|
||||
public final class ImportData {
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private Long importId;
|
||||
|
||||
Vendored
+1
-1
@@ -20,7 +20,7 @@ package org.apache.fineract.infrastructure.cache.data;
|
||||
|
||||
import org.apache.fineract.infrastructure.core.data.EnumOptionData;
|
||||
|
||||
public class CacheData {
|
||||
public final class CacheData {
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private final EnumOptionData cacheType;
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ import org.apache.fineract.infrastructure.core.data.EnumOptionData;
|
||||
import org.joda.time.DateTime;
|
||||
import org.joda.time.LocalDate;
|
||||
|
||||
public class EmailCampaignData {
|
||||
public final class EmailCampaignData {
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private Long id;
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ package org.apache.fineract.infrastructure.campaigns.email.data;
|
||||
/**
|
||||
* Immutable data object representing an Email configuration.
|
||||
*/
|
||||
public class EmailConfigurationData {
|
||||
public final class EmailConfigurationData {
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private final Long id;
|
||||
|
||||
+1
-1
@@ -40,7 +40,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
public class EmailConfigurationValidator {
|
||||
public final class EmailConfigurationValidator {
|
||||
|
||||
private final FromJsonHelper fromApiJsonHelper;
|
||||
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@ import org.joda.time.LocalDate;
|
||||
/**
|
||||
* Immutable data object representing a SMS message.
|
||||
*/
|
||||
public class EmailData {
|
||||
public final class EmailData {
|
||||
|
||||
private final Long id;
|
||||
private final Long groupId;
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ package org.apache.fineract.infrastructure.campaigns.email.data;
|
||||
import java.io.File;
|
||||
import java.util.List;
|
||||
|
||||
public class EmailMessageWithAttachmentData {
|
||||
public final class EmailMessageWithAttachmentData {
|
||||
|
||||
private final String to;
|
||||
private final String text;
|
||||
|
||||
+1
-1
@@ -35,7 +35,7 @@ import org.springframework.mail.javamail.MimeMessageHelper;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@Service
|
||||
public class EmailMessageJobEmailServiceImpl implements EmailMessageJobEmailService {
|
||||
public final class EmailMessageJobEmailServiceImpl implements EmailMessageJobEmailService {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(EmailMessageJobEmailServiceImpl.class);
|
||||
private EmailConfigurationRepository emailConfigurationRepository;
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@ import org.joda.time.DateTime;
|
||||
import org.joda.time.LocalDate;
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
public class SmsCampaignData {
|
||||
public final class SmsCampaignData {
|
||||
|
||||
private Long id;
|
||||
private final String campaignName;
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@ import java.io.Serializable;
|
||||
/**
|
||||
* Immutable data object representing a code.
|
||||
*/
|
||||
public class CodeData implements Serializable {
|
||||
public final class CodeData implements Serializable {
|
||||
|
||||
private final Long id;
|
||||
@SuppressWarnings("unused")
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@ import org.apache.commons.lang3.StringUtils;
|
||||
* Immutable data object representing pagination parameter values.
|
||||
* </p>
|
||||
*/
|
||||
public class PaginationParameters {
|
||||
public final class PaginationParameters {
|
||||
|
||||
private final boolean paged;
|
||||
private final Integer offset;
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@
|
||||
*/
|
||||
package org.apache.fineract.infrastructure.creditbureau.data;
|
||||
|
||||
public class CreditBureauConfigurationData {
|
||||
public final class CreditBureauConfigurationData {
|
||||
|
||||
private final long creditBureauConfigurationId;
|
||||
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@
|
||||
*/
|
||||
package org.apache.fineract.infrastructure.creditbureau.data;
|
||||
|
||||
public class CreditBureauData {
|
||||
public final class CreditBureauData {
|
||||
|
||||
private final long creditBureauId;
|
||||
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@
|
||||
*/
|
||||
package org.apache.fineract.infrastructure.creditbureau.data;
|
||||
|
||||
public class CreditBureauLoanProductMappingData {
|
||||
public final class CreditBureauLoanProductMappingData {
|
||||
|
||||
private final long creditbureauLoanProductMappingId;
|
||||
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@
|
||||
*/
|
||||
package org.apache.fineract.infrastructure.creditbureau.data;
|
||||
|
||||
public class CreditBureauMasterData {
|
||||
public final class CreditBureauMasterData {
|
||||
|
||||
private final long creditBureauId;
|
||||
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@
|
||||
*/
|
||||
package org.apache.fineract.infrastructure.creditbureau.data;
|
||||
|
||||
public class CreditBureauProduct {
|
||||
public final class CreditBureauProduct {
|
||||
|
||||
private final long creditBureauProductId;
|
||||
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@
|
||||
*/
|
||||
package org.apache.fineract.infrastructure.creditbureau.data;
|
||||
|
||||
public class OrganisationCreditBureauData {
|
||||
public final class OrganisationCreditBureauData {
|
||||
|
||||
private final long organisationCreditBureauId;
|
||||
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@ import java.util.List;
|
||||
/**
|
||||
* Immutable data object representing datatable data.
|
||||
*/
|
||||
public class DatatableData implements Serializable {
|
||||
public final class DatatableData implements Serializable {
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private final String applicationTableName;
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
final public class ReportData {
|
||||
public final class ReportData {
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private final Long id;
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@
|
||||
package org.apache.fineract.infrastructure.dataqueries.data;
|
||||
|
||||
/* used to show list of parameters used by a report and also for getting a list of parameters available (the reportParameterName is left null */
|
||||
final public class ReportParameterData {
|
||||
public final class ReportParameterData {
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private final Long id;
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@
|
||||
*/
|
||||
package org.apache.fineract.infrastructure.dataqueries.data;
|
||||
|
||||
final public class ReportParameterJoinData {
|
||||
public final class ReportParameterJoinData {
|
||||
|
||||
private final Long reportId;
|
||||
private final String reportName;
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@ package org.apache.fineract.infrastructure.dataqueries.data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class ResultsetRowData {
|
||||
public final class ResultsetRowData {
|
||||
|
||||
private final List<String> row;
|
||||
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ package org.apache.fineract.infrastructure.entityaccess.data;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
public class FineractEntityToEntityMappingData implements Serializable {
|
||||
public final class FineractEntityToEntityMappingData implements Serializable {
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private Long mapId;
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@
|
||||
*/
|
||||
package org.apache.fineract.infrastructure.entityaccess.domain;
|
||||
|
||||
public class FineractEntityAccessType {
|
||||
public final class FineractEntityAccessType {
|
||||
|
||||
private String str;
|
||||
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@Service
|
||||
public class FineractEntityRelationRepositoryWrapper {
|
||||
public final class FineractEntityRelationRepositoryWrapper {
|
||||
|
||||
private final FineractEntityRelationRepository fineractEntityRelationRepository;
|
||||
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@
|
||||
*/
|
||||
package org.apache.fineract.infrastructure.entityaccess.domain;
|
||||
|
||||
public class FineractEntityType {
|
||||
public final class FineractEntityType {
|
||||
|
||||
private String type;
|
||||
private String description;
|
||||
|
||||
+1
-1
@@ -32,7 +32,7 @@ import org.apache.fineract.portfolio.client.domain.Client;
|
||||
|
||||
@Entity
|
||||
@Table(name = "client_device_registration")
|
||||
public class DeviceRegistration extends AbstractPersistableCustom {
|
||||
public final class DeviceRegistration extends AbstractPersistableCustom {
|
||||
|
||||
@OneToOne
|
||||
@JoinColumn(name = "client_id", nullable = false, unique = true)
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ package org.apache.fineract.infrastructure.gcm.domain;
|
||||
import java.util.Date;
|
||||
import org.apache.fineract.portfolio.client.data.ClientData;
|
||||
|
||||
public class DeviceRegistrationData {
|
||||
public final class DeviceRegistrationData {
|
||||
|
||||
public Long id;
|
||||
public ClientData clientData;
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@ package org.apache.fineract.infrastructure.hooks.data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class Event implements Serializable {
|
||||
public final class Event implements Serializable {
|
||||
|
||||
private final String actionName;
|
||||
private final String entityName;
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ package org.apache.fineract.infrastructure.hooks.data;
|
||||
import java.io.Serializable;
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
public class Field implements Serializable {
|
||||
public final class Field implements Serializable {
|
||||
|
||||
private final String fieldName;
|
||||
private final String fieldValue;
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ import java.io.Serializable;
|
||||
import java.util.List;
|
||||
import org.joda.time.LocalDate;
|
||||
|
||||
public class HookData implements Serializable {
|
||||
public final class HookData implements Serializable {
|
||||
|
||||
private final Long id;
|
||||
private final String name;
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
public class HookTemplateData implements Serializable {
|
||||
public final class HookTemplateData implements Serializable {
|
||||
|
||||
private final Long id;
|
||||
private final String name;
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ package org.apache.fineract.infrastructure.reportmailingjob.data;
|
||||
/**
|
||||
* Immutable data object representing report mailing job configuration data.
|
||||
**/
|
||||
public class ReportMailingJobConfigurationData {
|
||||
public final class ReportMailingJobConfigurationData {
|
||||
|
||||
private final int id;
|
||||
private final String name;
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@ import org.joda.time.DateTime;
|
||||
/**
|
||||
* Immutable data object representing report mailing job data.
|
||||
**/
|
||||
public class ReportMailingJobData {
|
||||
public final class ReportMailingJobData {
|
||||
|
||||
private final Long id;
|
||||
private final String name;
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@ import org.joda.time.DateTime;
|
||||
/**
|
||||
* Immutable data object representing report mailing job run history data.
|
||||
**/
|
||||
public class ReportMailingJobRunHistoryData {
|
||||
public final class ReportMailingJobRunHistoryData {
|
||||
|
||||
private final Long id;
|
||||
private final Long reportMailingJobId;
|
||||
|
||||
+1
-1
@@ -28,7 +28,7 @@ import org.apache.commons.lang3.time.StopWatch;
|
||||
* Immutable data object representing platform API request used for
|
||||
* logging/debugging.
|
||||
*/
|
||||
public class PlatformRequestLog {
|
||||
public final class PlatformRequestLog {
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private final long startTime;
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@ import org.apache.fineract.infrastructure.core.data.EnumOptionData;
|
||||
/**
|
||||
* Immutable data object representing a SMS message.
|
||||
*/
|
||||
public class SmsData {
|
||||
public final class SmsData {
|
||||
|
||||
private final Long id;
|
||||
private final Long groupId;
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@ package org.apache.fineract.infrastructure.survey.data;
|
||||
|
||||
import org.apache.fineract.infrastructure.dataqueries.data.DatatableData;
|
||||
|
||||
public class SurveyDataTableData {
|
||||
public final class SurveyDataTableData {
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private final DatatableData datatableData;
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@ import javax.validation.constraints.NotNull;
|
||||
import org.apache.fineract.interoperation.domain.InteropActionState;
|
||||
import org.joda.time.LocalDateTime;
|
||||
|
||||
public class InteropQuoteResponseData extends InteropResponseData {
|
||||
public final class InteropQuoteResponseData extends InteropResponseData {
|
||||
|
||||
@NotNull
|
||||
private final String quoteCode;
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@ import javax.validation.constraints.NotNull;
|
||||
import org.apache.fineract.interoperation.domain.InteropActionState;
|
||||
import org.joda.time.LocalDateTime;
|
||||
|
||||
public class InteropTransactionRequestResponseData extends InteropResponseData {
|
||||
public final class InteropTransactionRequestResponseData extends InteropResponseData {
|
||||
|
||||
@NotNull
|
||||
private final String requestCode;
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@ import javax.validation.constraints.NotNull;
|
||||
import org.apache.fineract.interoperation.domain.InteropActionState;
|
||||
import org.joda.time.LocalDateTime;
|
||||
|
||||
public class InteropTransferResponseData extends InteropResponseData {
|
||||
public final class InteropTransferResponseData extends InteropResponseData {
|
||||
|
||||
@NotNull
|
||||
private final String transferCode;
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@ import org.joda.time.LocalDate;
|
||||
/**
|
||||
* Immutable data object for office transactions.
|
||||
*/
|
||||
public class OfficeTransactionData {
|
||||
public final class OfficeTransactionData {
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private final Long id;
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@ import org.apache.fineract.accounting.glaccount.data.GLAccountData;
|
||||
import org.apache.fineract.portfolio.loanproduct.data.LoanProductData;
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
public class ProvisioningCriteriaData implements Comparable<ProvisioningCriteriaData>, Serializable {
|
||||
public final class ProvisioningCriteriaData implements Comparable<ProvisioningCriteriaData>, Serializable {
|
||||
|
||||
private final Long criteriaId;
|
||||
private final String criteriaName;
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@ import org.joda.time.LocalDate;
|
||||
/**
|
||||
* Immutable data object returned for loan-officer bulk transfer screens.
|
||||
*/
|
||||
public class BulkTransferLoanOfficerData {
|
||||
public final class BulkTransferLoanOfficerData {
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private final Long officeId;
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@ import org.joda.time.LocalDate;
|
||||
/**
|
||||
* Immutable data object representing staff data.
|
||||
*/
|
||||
public class StaffData implements Serializable {
|
||||
public final class StaffData implements Serializable {
|
||||
|
||||
private final Long id;
|
||||
private final String externalId;
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@ package org.apache.fineract.organisation.teller.domain;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class CashierTxnType implements Serializable {
|
||||
public final class CashierTxnType implements Serializable {
|
||||
|
||||
private Integer id;
|
||||
private String value;
|
||||
|
||||
+1
-1
@@ -31,7 +31,7 @@ import org.joda.time.LocalDate;
|
||||
* Immutable data object representing a savings account.
|
||||
*/
|
||||
@SuppressWarnings("unused")
|
||||
public class AccountTransferData implements Serializable {
|
||||
public final class AccountTransferData implements Serializable {
|
||||
|
||||
private final Long id;
|
||||
private final Boolean reversed;
|
||||
|
||||
+1
-1
@@ -38,7 +38,7 @@ import org.joda.time.MonthDay;
|
||||
* Immutable data object representing a savings account.
|
||||
*/
|
||||
@SuppressWarnings("unused")
|
||||
public class StandingInstructionData {
|
||||
public final class StandingInstructionData {
|
||||
|
||||
private final Long id;
|
||||
private final Long accountDetailId;
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@
|
||||
*/
|
||||
package org.apache.fineract.portfolio.address.data;
|
||||
|
||||
public class ClientAddressData {
|
||||
public final class ClientAddressData {
|
||||
|
||||
private final long clientAddressId;
|
||||
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@
|
||||
*/
|
||||
package org.apache.fineract.portfolio.address.data;
|
||||
|
||||
public class FieldConfigurationData {
|
||||
public final class FieldConfigurationData {
|
||||
|
||||
private final long fieldConfigurationId;
|
||||
|
||||
|
||||
+1
-1
@@ -36,7 +36,7 @@ import org.joda.time.LocalTime;
|
||||
/**
|
||||
* Immutable data object representing a Calendar.
|
||||
*/
|
||||
public class CalendarData implements Serializable {
|
||||
public final class CalendarData implements Serializable {
|
||||
|
||||
private final Long id;
|
||||
private final Long calendarInstanceId;
|
||||
|
||||
+1
-1
@@ -37,7 +37,7 @@ import org.joda.time.MonthDay;
|
||||
/**
|
||||
* Immutable data object for charge data.
|
||||
*/
|
||||
public class ChargeData implements Comparable<ChargeData>, Serializable {
|
||||
public final class ChargeData implements Comparable<ChargeData>, Serializable {
|
||||
|
||||
private final Long id;
|
||||
private final String name;
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@ import org.apache.fineract.portfolio.charge.data.ChargeData;
|
||||
import org.joda.time.LocalDate;
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
public class ClientChargeData {
|
||||
public final class ClientChargeData {
|
||||
|
||||
private final Long id;
|
||||
|
||||
|
||||
+1
-1
@@ -40,7 +40,7 @@ import org.joda.time.LocalDate;
|
||||
* Immutable data object representing client data.
|
||||
*/
|
||||
@SuppressWarnings("unused")
|
||||
final public class ClientData implements Comparable<ClientData>, Serializable {
|
||||
public final class ClientData implements Comparable<ClientData>, Serializable {
|
||||
|
||||
private final Long id;
|
||||
private final String accountNo;
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@ import java.util.Collection;
|
||||
import org.apache.fineract.infrastructure.codes.data.CodeValueData;
|
||||
import org.joda.time.LocalDate;
|
||||
|
||||
public class ClientFamilyMembersData implements Serializable {
|
||||
public final class ClientFamilyMembersData implements Serializable {
|
||||
|
||||
private final Long id;
|
||||
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@ import org.apache.fineract.portfolio.paymenttype.data.PaymentTypeData;
|
||||
import org.joda.time.LocalDate;
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
public class ClientTransactionData {
|
||||
public final class ClientTransactionData {
|
||||
|
||||
private final Long id;
|
||||
private final Long officeId;
|
||||
|
||||
+1
-1
@@ -41,7 +41,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
public class ClientFamilyMemberCommandFromApiJsonDeserializer {
|
||||
public final class ClientFamilyMemberCommandFromApiJsonDeserializer {
|
||||
|
||||
private final FromJsonHelper fromApiJsonHelper;
|
||||
private final Set<String> supportedParameters = new HashSet<>(Arrays.asList("id", "clientId", "firstName", "middleName", "lastName",
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@ import org.apache.fineract.organisation.monetary.data.CurrencyData;
|
||||
/**
|
||||
* Immutable data object for Collateral data.
|
||||
*/
|
||||
public class CollateralData {
|
||||
public final class CollateralData {
|
||||
|
||||
private final Long id;
|
||||
private final CodeValueData type;
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@ import java.util.Collection;
|
||||
* Immutable data object for clients with loans due for disbursement or
|
||||
* collection.
|
||||
*/
|
||||
public class IndividualClientData {
|
||||
public final class IndividualClientData {
|
||||
|
||||
private final Long clientId;
|
||||
private final String clientName;
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@ import org.joda.time.LocalDate;
|
||||
/**
|
||||
* Immutable data object for collection sheet.
|
||||
*/
|
||||
public class IndividualCollectionSheetData {
|
||||
public final class IndividualCollectionSheetData {
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private final LocalDate dueDate;
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@ import org.apache.fineract.infrastructure.core.data.EnumOptionData;
|
||||
* Immutable data object for clients with loans due for disbursement or
|
||||
* collection.
|
||||
*/
|
||||
public class JLGClientData {
|
||||
public final class JLGClientData {
|
||||
|
||||
private final Long clientId;
|
||||
private final String clientName;
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@ import org.joda.time.LocalDate;
|
||||
/**
|
||||
* Immutable data object for join liability group's collection sheet.
|
||||
*/
|
||||
public class JLGCollectionSheetData {
|
||||
public final class JLGCollectionSheetData {
|
||||
|
||||
private final LocalDate dueDate;
|
||||
private final Collection<LoanProductData> loanProducts;
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@ import java.util.Collection;
|
||||
* Immutable data object for groups with clients due for disbursement or
|
||||
* collection.
|
||||
*/
|
||||
public class JLGGroupData {
|
||||
public final class JLGGroupData {
|
||||
|
||||
private final Long groupId;
|
||||
private final String groupName;
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@ import org.apache.fineract.organisation.monetary.data.CurrencyData;
|
||||
* Immutable data object for representing loan with dues (example: loan is due
|
||||
* for disbursement, repayments).
|
||||
*/
|
||||
public class SavingsDueData {
|
||||
public final class SavingsDueData {
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private final Long savingsId;
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@ import java.io.Serializable;
|
||||
/**
|
||||
* Immutable data object to represent fund data.
|
||||
*/
|
||||
public class FundData implements Serializable {
|
||||
public final class FundData implements Serializable {
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private final Long id;
|
||||
|
||||
+1
-1
@@ -34,7 +34,7 @@ import org.joda.time.LocalDate;
|
||||
/**
|
||||
* Immutable data object representing groups.
|
||||
*/
|
||||
public class CenterData implements Serializable {
|
||||
public final class CenterData implements Serializable {
|
||||
|
||||
private final Long id;
|
||||
private String accountNo;
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@ package org.apache.fineract.portfolio.group.data;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
public class StaffCenterData {
|
||||
public final class StaffCenterData {
|
||||
|
||||
private final Long staffId;
|
||||
@SuppressWarnings("unused")
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ package org.apache.fineract.portfolio.interestratechart.data;
|
||||
import java.math.BigDecimal;
|
||||
import org.apache.fineract.infrastructure.core.data.EnumOptionData;
|
||||
|
||||
public class InterestIncentiveData {
|
||||
public final class InterestIncentiveData {
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private final Long id;
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@ import org.joda.time.LocalDate;
|
||||
/**
|
||||
* Immutable data object representing a InterestRateChart.
|
||||
*/
|
||||
public class InterestRateChartData {
|
||||
public final class InterestRateChartData {
|
||||
|
||||
private final Long id;
|
||||
private final String name;
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@ import org.apache.fineract.organisation.monetary.data.CurrencyData;
|
||||
/**
|
||||
* Immutable data object representing a InterestRateChartSlab.
|
||||
*/
|
||||
public class InterestRateChartSlabData {
|
||||
public final class InterestRateChartSlabData {
|
||||
|
||||
private final Long id;
|
||||
private final String description;
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ package org.apache.fineract.portfolio.loanaccount.data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
public class GlimRepaymentTemplate {
|
||||
public final class GlimRepaymentTemplate {
|
||||
|
||||
private final BigDecimal glimId;
|
||||
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ package org.apache.fineract.portfolio.loanaccount.data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
public class GroupLoanIndividualMonitoringAccountData {
|
||||
public final class GroupLoanIndividualMonitoringAccountData {
|
||||
|
||||
private final BigDecimal glimId;
|
||||
|
||||
|
||||
+1
-1
@@ -58,7 +58,7 @@ import org.springframework.util.CollectionUtils;
|
||||
* Immutable data object representing loan account data.
|
||||
*/
|
||||
@SuppressWarnings("unused")
|
||||
public class LoanAccountData {
|
||||
public final class LoanAccountData {
|
||||
|
||||
// basic loan details
|
||||
|
||||
|
||||
+1
-1
@@ -33,7 +33,7 @@ import org.apache.fineract.portfolio.group.domain.Group;
|
||||
|
||||
@Entity
|
||||
@Table(name = "glim_accounts", uniqueConstraints = { @UniqueConstraint(columnNames = { "account_number" }, name = "FK_glim_id") })
|
||||
public class GroupLoanIndividualMonitoringAccount extends AbstractPersistableCustom {
|
||||
public final class GroupLoanIndividualMonitoringAccount extends AbstractPersistableCustom {
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "group_id", nullable = false)
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@ import java.util.Collection;
|
||||
import org.apache.fineract.infrastructure.core.data.EnumOptionData;
|
||||
import org.apache.fineract.portfolio.account.data.PortfolioAccountData;
|
||||
|
||||
public class GuarantorFundingData {
|
||||
public final class GuarantorFundingData {
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private final Long id;
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ package org.apache.fineract.portfolio.loanaccount.guarantor.data;
|
||||
import org.apache.fineract.portfolio.loanaccount.data.LoanTransactionData;
|
||||
import org.apache.fineract.portfolio.savings.data.DepositAccountOnHoldTransactionData;
|
||||
|
||||
public class GuarantorTransactionData {
|
||||
public final class GuarantorTransactionData {
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private final Long id;
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ package org.apache.fineract.portfolio.loanaccount.guarantor.data;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
public class ObligeeData {
|
||||
public final class ObligeeData {
|
||||
|
||||
private final String firstName;
|
||||
private final String lastName;
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@ import org.apache.fineract.portfolio.loanaccount.loanschedule.domain.LoanSchedul
|
||||
/**
|
||||
* Transfer object to return the schedule after generation of schedule
|
||||
*/
|
||||
public class LoanScheduleDTO {
|
||||
public final class LoanScheduleDTO {
|
||||
|
||||
private final List<LoanRepaymentScheduleInstallment> installments;
|
||||
private final LoanScheduleModel loanScheduleModel;
|
||||
|
||||
+1
-1
@@ -31,7 +31,7 @@ import org.apache.fineract.portfolio.loanaccount.domain.transactionprocessor.Loa
|
||||
import org.apache.fineract.portfolio.loanaccount.loanschedule.domain.RecalculationDetail;
|
||||
import org.joda.time.LocalDate;
|
||||
|
||||
public class LoanScheduleParams {
|
||||
public final class LoanScheduleParams {
|
||||
|
||||
// Actual period Number as per the schedule
|
||||
private int periodNumber;
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@ import org.joda.time.LocalDate;
|
||||
* Immutable data object that represents a period of a loan schedule.
|
||||
*
|
||||
*/
|
||||
public class LoanSchedulePeriodData {
|
||||
public final class LoanSchedulePeriodData {
|
||||
|
||||
private final Integer period;
|
||||
private final LocalDate fromDate;
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@ import org.joda.time.LocalDate;
|
||||
/**
|
||||
* Immutable data object representing loan reschedule request data.
|
||||
**/
|
||||
public class LoanRescheduleRequestData {
|
||||
public final class LoanRescheduleRequestData {
|
||||
|
||||
private final Long id;
|
||||
private final Long loanId;
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ package org.apache.fineract.portfolio.loanproduct.data;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
public class LoanProductGuaranteeData implements Serializable {
|
||||
public final class LoanProductGuaranteeData implements Serializable {
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private final Long id;
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@ import org.apache.fineract.infrastructure.core.data.EnumOptionData;
|
||||
/**
|
||||
* Immutable data object representing a ClientAttendance.
|
||||
*/
|
||||
public class ClientAttendanceData {
|
||||
public final class ClientAttendanceData {
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private final Long id;
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@ import org.joda.time.LocalDate;
|
||||
/**
|
||||
* Immutable data object representing a Meeting.
|
||||
*/
|
||||
public class MeetingData {
|
||||
public final class MeetingData {
|
||||
|
||||
private final Long id;
|
||||
private final LocalDate meetingDate;
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@ import org.apache.fineract.infrastructure.core.data.EnumOptionData;
|
||||
/**
|
||||
* Bowpi GT Created by Jose on 19/07/2017.
|
||||
*/
|
||||
public class RateData implements Serializable {
|
||||
public final class RateData implements Serializable {
|
||||
|
||||
private Long id;
|
||||
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@ package org.apache.fineract.portfolio.savings.data;
|
||||
|
||||
import org.joda.time.LocalDate;
|
||||
|
||||
public class ClosingOfSavingsAccounts {
|
||||
public final class ClosingOfSavingsAccounts {
|
||||
|
||||
private final transient Integer rowIndex;
|
||||
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ import java.math.BigDecimal;
|
||||
import org.apache.fineract.infrastructure.core.data.EnumOptionData;
|
||||
import org.apache.fineract.portfolio.interestratechart.data.InterestIncentiveData;
|
||||
|
||||
public class DepositAccountInterestIncentiveData {
|
||||
public final class DepositAccountInterestIncentiveData {
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private final Long id;
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@ import org.joda.time.LocalDate;
|
||||
/**
|
||||
* Immutable data object representing a deposit account interest rate chart.
|
||||
*/
|
||||
public class DepositAccountInterestRateChartData {
|
||||
public final class DepositAccountInterestRateChartData {
|
||||
|
||||
private final Long id;
|
||||
private final String name;
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user