FINERACT-1526: Upgrade dependencies

This commit is contained in:
Aleksandar Vidakovic
2022-03-11 16:55:30 +01:00
committed by Aleksandar Vidakovic
parent 71c4cef5d0
commit 99e8525729
54 changed files with 105 additions and 54 deletions
@@ -35,6 +35,7 @@ public enum GLClosureJsonInputParams {
}
private static final Set<String> values = new HashSet<>();
static {
for (final GLClosureJsonInputParams type : GLClosureJsonInputParams.values()) {
values.add(type.value);
@@ -55,6 +55,7 @@ public final class AccountingConstants {
}
private static final Map<Integer, CashAccountsForLoan> intToEnumMap = new HashMap<>();
static {
for (final CashAccountsForLoan type : CashAccountsForLoan.values()) {
intToEnumMap.put(type.value, type);
@@ -92,6 +93,7 @@ public final class AccountingConstants {
}
private static final Map<Integer, AccrualAccountsForLoan> intToEnumMap = new HashMap<>();
static {
for (final AccrualAccountsForLoan type : AccrualAccountsForLoan.values()) {
intToEnumMap.put(type.value, type);
@@ -191,6 +193,7 @@ public final class AccountingConstants {
}
private static final Map<Integer, CashAccountsForSavings> intToEnumMap = new HashMap<>();
static {
for (final CashAccountsForSavings type : CashAccountsForSavings.values()) {
intToEnumMap.put(type.value, type);
@@ -278,6 +281,7 @@ public final class AccountingConstants {
private final GLAccountType mappedGLAccountType;
private static List<FinancialActivityData> financialActivities;
static {
financialActivities = new ArrayList<>();
for (final FinancialActivity type : FinancialActivity.values()) {
@@ -314,6 +318,7 @@ public final class AccountingConstants {
}
private static final Map<Integer, FinancialActivity> intToEnumMap = new HashMap<>();
static {
for (final FinancialActivity type : FinancialActivity.values()) {
intToEnumMap.put(type.value, type);
@@ -363,6 +368,7 @@ public final class AccountingConstants {
}
private static final Map<Integer, CashAccountsForShares> intToEnumMap = new HashMap<>();
static {
for (final CashAccountsForShares type : CashAccountsForShares.values()) {
intToEnumMap.put(type.value, type);
@@ -32,6 +32,7 @@ public enum AccountingRuleType {
private final String code;
private static final Map<Integer, AccountingRuleType> intToEnumMap = new HashMap<>();
static {
for (final AccountingRuleType type : AccountingRuleType.values()) {
intToEnumMap.put(type.value, type);
@@ -35,6 +35,7 @@ public enum FinancialActivityAccountsJsonInputParams {
}
private static final Set<String> values = new HashSet<>();
static {
for (final FinancialActivityAccountsJsonInputParams type : FinancialActivityAccountsJsonInputParams.values()) {
values.add(type.value);
@@ -36,6 +36,7 @@ public enum GLAccountJsonInputParams {
}
private static final Set<String> values = new HashSet<>();
static {
for (final GLAccountJsonInputParams type : GLAccountJsonInputParams.values()) {
values.add(type.value);
@@ -46,6 +46,7 @@ public enum GLAccountType {
private static final Map<Integer, GLAccountType> intToEnumMap = new HashMap<>();
private static int minValue;
private static int maxValue;
static {
int i = 0;
for (final GLAccountType type : GLAccountType.values()) {
@@ -44,6 +44,7 @@ public enum GLAccountUsage {
private static final Map<Integer, GLAccountUsage> intToEnumMap = new HashMap<>();
private static int minValue;
private static int maxValue;
static {
int i = 0;
for (final GLAccountUsage type : GLAccountUsage.values()) {
@@ -39,6 +39,7 @@ public enum JournalEntryJsonInputParams {
}
private static final Set<String> values = new HashSet<>();
static {
for (final JournalEntryJsonInputParams type : JournalEntryJsonInputParams.values()) {
values.add(type.value);
@@ -42,6 +42,7 @@ public enum JournalEntryType {
}
private static final Map<Integer, JournalEntryType> intToEnumMap = new HashMap<>();
static {
for (final JournalEntryType type : JournalEntryType.values()) {
intToEnumMap.put(type.value, type);
@@ -38,6 +38,7 @@ public enum AccountingRuleJsonInputParams {
}
private static final Set<String> values = new HashSet<>();
static {
for (final AccountingRuleJsonInputParams type : AccountingRuleJsonInputParams.values()) {
values.add(type.value);
@@ -36,6 +36,7 @@ public enum AdHocJsonInputParams {
}
private static final Set<String> values = new HashSet<>();
static {
for (final AdHocJsonInputParams type : AdHocJsonInputParams.values()) {
values.add(type.value);
@@ -79,6 +79,7 @@ public final class AccountNumberFormatEnumerations {
private static final Map<Integer, AccountNumberPrefixType> intToEnumMap = new HashMap<>();
private static int minValue;
private static int maxValue;
static {
int i = 0;
for (final AccountNumberPrefixType type : AccountNumberPrefixType.values()) {
@@ -45,6 +45,7 @@ public enum EntityAccountType {
private static final Map<Integer, EntityAccountType> intToEnumMap = new HashMap<>();
private static int minValue;
private static int maxValue;
static {
int i = 0;
for (final EntityAccountType type : EntityAccountType.values()) {
@@ -326,7 +326,7 @@ public final class ImportHandlerUtils {
}
}
}
} else if (sheetName.equals(TemplatePopulateImportConstants.PRODUCT_SHEET_NAME)) {
} else {
for (Row row : sheet) {
for (int i = 0; i < 2; i++) {
if (name != null) {
@@ -51,7 +51,7 @@ public final class EmailConfigurationValidator {
EmailApiConstants.SMTP_PASSWORD, EmailApiConstants.SMTP_USERNAME, EmailApiConstants.SMTP_SERVER));
@Autowired
private EmailConfigurationValidator(final FromJsonHelper fromApiJsonHelper) {
public EmailConfigurationValidator(final FromJsonHelper fromApiJsonHelper) {
this.fromApiJsonHelper = fromApiJsonHelper;
}
@@ -40,7 +40,7 @@ public final class EmailMessageJobEmailServiceImpl implements EmailMessageJobEma
private final ExternalServicesPropertiesReadPlatformService externalServicesReadPlatformService;
@Autowired
private EmailMessageJobEmailServiceImpl(ExternalServicesPropertiesReadPlatformService externalServicesReadPlatformService) {
public EmailMessageJobEmailServiceImpl(ExternalServicesPropertiesReadPlatformService externalServicesReadPlatformService) {
this.externalServicesReadPlatformService = externalServicesReadPlatformService;
}
@@ -38,6 +38,7 @@ public class CodeConstants {
}
private static final Set<String> values = new HashSet<>();
static {
for (final CodevalueJSONinputParams type : CodevalueJSONinputParams.values()) {
values.add(type.value);
@@ -39,6 +39,7 @@ public enum EntityTables {
"savings_account_id");
private static final Map<String, EntityTables> lookup = new HashMap<String, EntityTables>();
static {
for (EntityTables d : EntityTables.values()) {
lookup.put(d.getName(), d);
@@ -36,6 +36,7 @@ public enum StorageType {
}
private static final Map<Integer, StorageType> intToEnumMap = new HashMap<>();
static {
for (final StorageType type : StorageType.values()) {
intToEnumMap.put(type.value, type);
@@ -28,9 +28,8 @@ public final class FineractEntityRelationRepositoryWrapper {
private final FineractEntityRelationRepository fineractEntityRelationRepository;
@Autowired
private FineractEntityRelationRepositoryWrapper(final FineractEntityRelationRepository fineractEntityRelationRepository) {
public FineractEntityRelationRepositoryWrapper(final FineractEntityRelationRepository fineractEntityRelationRepository) {
this.fineractEntityRelationRepository = fineractEntityRelationRepository;
}
public FineractEntityRelation findOneWithNotFoundDetection(final Long id) {
@@ -217,11 +217,10 @@ public class Office extends AbstractPersistableCustom implements Serializable {
}
public boolean hasParentOf(final Office office) {
boolean isParent = false;
if (this.parent != null) {
isParent = this.parent.equals(office);
return this.parent.equals(office);
}
return isParent;
return false;
}
public boolean doesNotHaveAnOfficeInHierarchyWithId(final Long officeId) {
@@ -241,7 +240,7 @@ public class Office extends AbstractPersistableCustom implements Serializable {
final boolean result = child.hasAnOfficeInHierarchyWithId(officeId);
if (result) {
match = result;
match = true;
break;
}
}
@@ -52,6 +52,7 @@ public enum RepaymentRescheduleType {
private static final Map<Integer, RepaymentRescheduleType> intToEnumMap = new HashMap<>();
private static int minValue;
private static int maxValue;
static {
int i = 0;
for (final RepaymentRescheduleType entityType : RepaymentRescheduleType.values()) {
@@ -38,12 +38,10 @@ public class FieldConfiguration extends AbstractPersistableCustom {
}
private FieldConfiguration(final String entity, final String table, final String field, final boolean is_enabled) {
public FieldConfiguration(final String entity, final String table, final String field, final boolean is_enabled) {
this.entity = entity;
this.table = table;
this.field = field;
this.isEnabled = is_enabled;
}
}
@@ -50,6 +50,7 @@ public final class CalendarConstants {
}
private static final Set<String> values = new HashSet<>();
static {
for (final CalendarSupportedParameters param : CalendarSupportedParameters.values()) {
values.add(param.value);
@@ -51,6 +51,7 @@ public enum CalendarEntityType {
private static final Map<Integer, CalendarEntityType> intToEnumMap = new HashMap<>();
private static int minValue;
private static int maxValue;
static {
int i = 0;
for (final CalendarEntityType entityType : CalendarEntityType.values()) {
@@ -44,6 +44,7 @@ public enum CalendarRemindBy {
private static final Map<Integer, CalendarRemindBy> intToEnumMap = new HashMap<>();
private static int minValue;
private static int maxValue;
static {
int i = 0;
for (final CalendarRemindBy remindBy : CalendarRemindBy.values()) {
@@ -45,6 +45,7 @@ public enum CalendarType {
private static final Map<Integer, CalendarType> intToEnumMap = new HashMap<>();
private static int minValue;
private static int maxValue;
static {
int i = 0;
for (final CalendarType type : CalendarType.values()) {
@@ -231,7 +231,7 @@ public class Charge extends AbstractPersistableCustom {
}
if (enableFreeWithdrawalCharge) {
this.enableFreeWithdrawal = enableFreeWithdrawalCharge;
this.enableFreeWithdrawal = true;
this.freeWithdrawalFrequency = freeWithdrawalFrequency;
this.restartFrequency = restartFrequency;
this.restartFrequencyEnum = restartFrequencyEnum.getValue();
@@ -240,7 +240,7 @@ public class Charge extends AbstractPersistableCustom {
if (enablePaymentType) {
if (paymentType != null) {
this.enablePaymentType = enablePaymentType;
this.enablePaymentType = true;
this.paymentType = paymentType;
}
}
@@ -49,7 +49,7 @@ public final class ClientFamilyMemberCommandFromApiJsonDeserializer {
"professionId", "locale", "dateFormat", "familyMembers"));
@Autowired
private ClientFamilyMemberCommandFromApiJsonDeserializer(final FromJsonHelper fromApiJsonHelper) {
public ClientFamilyMemberCommandFromApiJsonDeserializer(final FromJsonHelper fromApiJsonHelper) {
this.fromApiJsonHelper = fromApiJsonHelper;
}
@@ -44,6 +44,7 @@ public final class CollateralApiConstants {
}
private static final Set<String> values = new HashSet<>();
static {
for (final CollateralJSONinputParams type : CollateralJSONinputParams.values()) {
values.add(type.value);
@@ -83,6 +83,7 @@ public class BusinessEventNotificationConstants {
}
private static final Set<String> values = new HashSet<>();
static {
for (final BusinessEvents type : BusinessEvents.values()) {
values.add(type.value);
@@ -35,6 +35,7 @@ public enum ConditionType {
private final String code;
private static final Map<Integer, ConditionType> intToEnumMap = new HashMap<>();
static {
for (final ConditionType type : ConditionType.values()) {
intToEnumMap.put(type.value, type);
@@ -40,6 +40,7 @@ public enum GroupTypes {
private static final Map<Long, GroupTypes> intToEnumMap = new HashMap<>();
private static long minValue;
private static long maxValue;
static {
int i = 0;
for (final GroupTypes type : GroupTypes.values()) {
@@ -35,6 +35,7 @@ public enum InterestIncentiveAttributeName {
private final String code;
private static final Map<Integer, InterestIncentiveAttributeName> intToEnumMap = new HashMap<>();
static {
for (final InterestIncentiveAttributeName type : InterestIncentiveAttributeName.values()) {
intToEnumMap.put(type.value, type);
@@ -33,6 +33,7 @@ public enum InterestIncentiveEntityType {
private final String code;
private static final Map<Integer, InterestIncentiveEntityType> intToEnumMap = new HashMap<>();
static {
for (final InterestIncentiveEntityType type : InterestIncentiveEntityType.values()) {
intToEnumMap.put(type.value, type);
@@ -33,6 +33,7 @@ public enum InterestIncentiveType {
private final String code;
private static final Map<Integer, InterestIncentiveType> intToEnumMap = new HashMap<>();
static {
for (final InterestIncentiveType type : InterestIncentiveType.values()) {
intToEnumMap.put(type.value, type);
@@ -47,6 +47,7 @@ public final class GuarantorConstants {
}
private static final Set<String> values = new HashSet<>();
static {
for (final GuarantorJSONinputParams type : GuarantorJSONinputParams.values()) {
values.add(type.value);
@@ -44,6 +44,7 @@ public enum GuarantorType {
private static final Map<Integer, GuarantorType> intToEnumMap = new HashMap<>();
private static int minValue;
private static int maxValue;
static {
int i = 0;
for (final GuarantorType type : GuarantorType.values()) {
@@ -584,7 +584,7 @@ public class LoanScheduleAssembler {
if (!meetingFrequency.equals(repaymentFrequency)) {
throw new MeetingFrequencyMismatchException("loanapplication.repayment.frequency",
"Loan repayment frequency period must match that of meeting frequency period", repaymentFrequency);
} else if (meetingFrequency.equals(repaymentFrequency)) {
} else {
// repayment frequency is same as meeting frequency repayment
// interval should be same or multiple of meeting interval
if (repaymentInterval % meetingInterval != 0) {
@@ -42,6 +42,7 @@ public enum InterestRecalculationCompoundingMethod {
private final String code;
private static final Map<Integer, InterestRecalculationCompoundingMethod> intToEnumMap = new HashMap<>();
static {
for (final InterestRecalculationCompoundingMethod type : InterestRecalculationCompoundingMethod.values()) {
intToEnumMap.put(type.value, type);
@@ -49,6 +49,7 @@ public enum LendingStrategy {
private static final Map<Integer, LendingStrategy> intToEnumMap = new HashMap<>();
private static int minValue;
private static int maxValue;
static {
int i = 0;
for (final LendingStrategy type : LendingStrategy.values()) {
@@ -36,6 +36,7 @@ public enum LoanPreClosureInterestCalculationStrategy {
private static final Map<Integer, LoanPreClosureInterestCalculationStrategy> intToEnumMap = new HashMap<>();
private static int minValue;
private static int maxValue;
static {
int i = 0;
for (final LoanPreClosureInterestCalculationStrategy type : LoanPreClosureInterestCalculationStrategy.values()) {
@@ -56,6 +56,7 @@ public enum NoteType {
private static final Map<Integer, NoteType> intToEnumMap = new HashMap<>();
private static int minValue;
private static int maxValue;
static {
int i = 0;
for (final NoteType type : NoteType.values()) {
@@ -36,6 +36,7 @@ public class SearchConstants {
}
private static final Set<String> values = new HashSet<>();
static {
for (final SearchResponseParameters param : SearchResponseParameters.values()) {
values.add(param.value);
@@ -67,6 +68,7 @@ public class SearchConstants {
}
private static final Set<String> values = new HashSet<>();
static {
for (final SearchSupportedParameters param : SearchSupportedParameters.values()) {
values.add(param.value);
@@ -98,6 +100,7 @@ public class SearchConstants {
}
private static final Set<String> values = new HashSet<>();
static {
for (final SearchSupportedResources param : SearchSupportedResources.values()) {
values.add(param.value);
@@ -129,6 +132,7 @@ public class SearchConstants {
}
private static final Set<String> values = new HashSet<>();
static {
for (final SearchLoanDate param : SearchLoanDate.values()) {
values.add(param.value);