remove unused import warnings and unused variable warnings.
This commit is contained in:
+2
@@ -18,10 +18,12 @@ import org.springframework.data.jpa.domain.AbstractPersistable;
|
||||
@Table(name = "acc_rule_tags")
|
||||
public class AccountingTagRule extends AbstractPersistable<Long> {
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "acc_rule_id", nullable = false)
|
||||
private AccountingRule accountingRule;
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "tag_id", nullable = false)
|
||||
private CodeValue tagId;
|
||||
|
||||
+6
-8
@@ -14,19 +14,13 @@ import org.mifosplatform.accounting.rule.api.AccountingRuleJsonInputParams;
|
||||
import org.mifosplatform.accounting.rule.command.AccountingRuleCommand;
|
||||
import org.mifosplatform.infrastructure.core.exception.InvalidJsonException;
|
||||
import org.mifosplatform.infrastructure.core.serialization.AbstractFromApiJsonDeserializer;
|
||||
import org.mifosplatform.infrastructure.core.serialization.FromApiJsonDeserializer;
|
||||
import org.mifosplatform.infrastructure.core.serialization.FromJsonHelper;
|
||||
import org.mifosplatform.portfolio.loanaccount.guarantor.command.GuarantorCommand;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import com.google.gson.JsonElement;
|
||||
import com.google.gson.reflect.TypeToken;
|
||||
|
||||
/**
|
||||
* Implementation of {@link FromApiJsonDeserializer} for
|
||||
* {@link GuarantorCommand}'s.
|
||||
*/
|
||||
@Component
|
||||
public final class AccountingRuleCommandFromApiJsonDeserializer extends AbstractFromApiJsonDeserializer<AccountingRuleCommand> {
|
||||
|
||||
@@ -55,8 +49,12 @@ public final class AccountingRuleCommandFromApiJsonDeserializer extends Abstract
|
||||
element);
|
||||
final String name = this.fromApiJsonHelper.extractStringNamed(AccountingRuleJsonInputParams.NAME.getValue(), element);
|
||||
final String description = this.fromApiJsonHelper.extractStringNamed(AccountingRuleJsonInputParams.DESCRIPTION.getValue(), element);
|
||||
final String[] creditTags = this.fromApiJsonHelper.extractArrayNamed(AccountingRuleJsonInputParams.CREDIT_ACCOUNT_TAGS.getValue(), element);
|
||||
final String[] debitTags = this.fromApiJsonHelper.extractArrayNamed(AccountingRuleJsonInputParams.DEBIT_ACCOUNT_TAGS.getValue(), element);
|
||||
|
||||
// final String[] creditTags =
|
||||
this.fromApiJsonHelper.extractArrayNamed(AccountingRuleJsonInputParams.CREDIT_ACCOUNT_TAGS.getValue(), element);
|
||||
// final String[] debitTags =
|
||||
this.fromApiJsonHelper.extractArrayNamed(AccountingRuleJsonInputParams.DEBIT_ACCOUNT_TAGS.getValue(), element);
|
||||
|
||||
return new AccountingRuleCommand(id, officeId, accountToDebitId, accountToCreditId, name, description);
|
||||
}
|
||||
}
|
||||
+2
-1
@@ -15,6 +15,7 @@ public class GroupAccountSummaryData {
|
||||
private final Long productId;
|
||||
private final String productName;
|
||||
private final Integer accountStatusId;
|
||||
@SuppressWarnings("unused")
|
||||
private final String accountNo;
|
||||
|
||||
public GroupAccountSummaryData(final Long id, final String externalId, final Long productId, final String productName,
|
||||
@@ -46,4 +47,4 @@ public class GroupAccountSummaryData {
|
||||
public Integer getAccountStatusId() {
|
||||
return this.accountStatusId;
|
||||
}
|
||||
}
|
||||
}
|
||||
+8
-7
@@ -163,6 +163,7 @@ public class SavingsAccount extends AbstractPersistable<Long> {
|
||||
@Column(name = "annual_fee_on_day", nullable = true)
|
||||
private Integer annualFeeOnDay;
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
@Temporal(TemporalType.DATE)
|
||||
@Column(name = "annual_fee_next_due_date", nullable = true)
|
||||
private Date annualFeeNextDueDate;
|
||||
@@ -276,8 +277,8 @@ public class SavingsAccount extends AbstractPersistable<Long> {
|
||||
return SavingsAccountStatusType.fromInt(this.status).isActive();
|
||||
}
|
||||
|
||||
public void activate(final DateTimeFormatter formatter, final LocalDate activationDate, List<Long> existingTransactionIds,
|
||||
List<Long> existingReversedTransactionIds) {
|
||||
public void activate(final DateTimeFormatter formatter, final LocalDate activationDate, final List<Long> existingTransactionIds,
|
||||
final List<Long> existingReversedTransactionIds) {
|
||||
|
||||
if (isActive()) {
|
||||
final String defaultUserMessage = "Cannot activate account. Account is already active.";
|
||||
@@ -352,8 +353,8 @@ public class SavingsAccount extends AbstractPersistable<Long> {
|
||||
return lockedInUntilLocalDate;
|
||||
}
|
||||
|
||||
public void postInterest(final LocalDate interestPostingUpToDate, List<Long> existingTransactionIds,
|
||||
List<Long> existingReversedTransactionIds) {
|
||||
public void postInterest(final LocalDate interestPostingUpToDate, final List<Long> existingTransactionIds,
|
||||
final List<Long> existingReversedTransactionIds) {
|
||||
|
||||
final SavingsInterestPostingPeriodType postingPeriodType = SavingsInterestPostingPeriodType.fromInt(this.interestPostingPeriodType);
|
||||
final List<LocalDate> postingLocalDates = determineInterestPostingDates(getActivationLocalDate(), interestPostingUpToDate,
|
||||
@@ -756,7 +757,7 @@ public class SavingsAccount extends AbstractPersistable<Long> {
|
||||
}
|
||||
|
||||
public SavingsAccountTransaction deposit(final DateTimeFormatter formatter, final LocalDate transactionDate,
|
||||
final BigDecimal transactionAmount, List<Long> existingTransactionIds, List<Long> existingReversedTransactionIds,
|
||||
final BigDecimal transactionAmount, final List<Long> existingTransactionIds, final List<Long> existingReversedTransactionIds,
|
||||
final PaymentDetail paymentDetail) {
|
||||
|
||||
if (isNotActive()) {
|
||||
@@ -818,7 +819,7 @@ public class SavingsAccount extends AbstractPersistable<Long> {
|
||||
}
|
||||
|
||||
public SavingsAccountTransaction withdraw(final DateTimeFormatter formatter, final LocalDate transactionDate,
|
||||
final BigDecimal transactionAmount, List<Long> existingTransactionIds, List<Long> existingReversedTransactionIds,
|
||||
final BigDecimal transactionAmount, final List<Long> existingTransactionIds, final List<Long> existingReversedTransactionIds,
|
||||
final PaymentDetail paymentDetail) {
|
||||
|
||||
if (isNotActive()) {
|
||||
@@ -915,7 +916,7 @@ public class SavingsAccount extends AbstractPersistable<Long> {
|
||||
}
|
||||
|
||||
public SavingsAccountTransaction addAnnualFee(final DateTimeFormatter formatter, final LocalDate transactionDate,
|
||||
List<Long> existingTransactionIds, List<Long> existingReversedTransactionIds) {
|
||||
final List<Long> existingTransactionIds, final List<Long> existingReversedTransactionIds) {
|
||||
|
||||
if (isNotActive()) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user