FINERACT-822 enable EqualsUnsafeCast error check
This commit is contained in:
committed by
Michael Vorburger ⛑️
parent
4b46f27253
commit
de20a987ae
@@ -318,8 +318,6 @@ tasks.withType(JavaCompile) {
|
|||||||
"StringSplitter",
|
"StringSplitter",
|
||||||
"MissingOverride",
|
"MissingOverride",
|
||||||
"ImmutableEnumChecker",
|
"ImmutableEnumChecker",
|
||||||
"EqualsUnsafeCast",
|
|
||||||
"BoxedPrimitiveEquality",
|
|
||||||
"BadImport",
|
"BadImport",
|
||||||
"UnusedMethod",
|
"UnusedMethod",
|
||||||
"ModifiedButNotUsed",
|
"ModifiedButNotUsed",
|
||||||
@@ -355,6 +353,7 @@ tasks.withType(JavaCompile) {
|
|||||||
"ObjectToString",
|
"ObjectToString",
|
||||||
"AssertThrowsMultipleStatements",
|
"AssertThrowsMultipleStatements",
|
||||||
"BoxedPrimitiveConstructor",
|
"BoxedPrimitiveConstructor",
|
||||||
|
"BoxedPrimitiveEquality",
|
||||||
"SynchronizeOnNonFinalField",
|
"SynchronizeOnNonFinalField",
|
||||||
"WildcardImport",
|
"WildcardImport",
|
||||||
"FutureReturnValueIgnored",
|
"FutureReturnValueIgnored",
|
||||||
@@ -373,6 +372,7 @@ tasks.withType(JavaCompile) {
|
|||||||
"ReferenceEquality",
|
"ReferenceEquality",
|
||||||
"OperatorPrecedence",
|
"OperatorPrecedence",
|
||||||
"EqualsGetClass",
|
"EqualsGetClass",
|
||||||
|
"EqualsUnsafeCast",
|
||||||
"JdkObsolete",
|
"JdkObsolete",
|
||||||
"DoubleBraceInitialization",
|
"DoubleBraceInitialization",
|
||||||
"InconsistentCapitalization",
|
"InconsistentCapitalization",
|
||||||
|
|||||||
+3
@@ -229,6 +229,9 @@ public class ChargeData implements Comparable<ChargeData>, Serializable {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(final Object obj) {
|
public boolean equals(final Object obj) {
|
||||||
|
if (!(obj instanceof ChargeData)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
final ChargeData chargeData = (ChargeData) obj;
|
final ChargeData chargeData = (ChargeData) obj;
|
||||||
return this.id.equals(chargeData.id);
|
return this.id.equals(chargeData.id);
|
||||||
}
|
}
|
||||||
|
|||||||
+3
@@ -98,6 +98,9 @@ public class IndividualClientData {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(final Object obj) {
|
public boolean equals(final Object obj) {
|
||||||
|
if (!(obj instanceof IndividualClientData)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
final IndividualClientData clientData = (IndividualClientData) obj;
|
final IndividualClientData clientData = (IndividualClientData) obj;
|
||||||
return clientData.clientId.compareTo(this.clientId) == 0;
|
return clientData.clientId.compareTo(this.clientId) == 0;
|
||||||
}
|
}
|
||||||
|
|||||||
+3
@@ -104,6 +104,9 @@ public class JLGClientData {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(final Object obj) {
|
public boolean equals(final Object obj) {
|
||||||
|
if (!(obj instanceof JLGClientData)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
final JLGClientData clientData = (JLGClientData) obj;
|
final JLGClientData clientData = (JLGClientData) obj;
|
||||||
return clientData.clientId.compareTo(this.clientId) == 0;
|
return clientData.clientId.compareTo(this.clientId) == 0;
|
||||||
}
|
}
|
||||||
|
|||||||
+3
@@ -88,6 +88,9 @@ public class JLGGroupData {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(final Object obj) {
|
public boolean equals(final Object obj) {
|
||||||
|
if (!(obj instanceof JLGGroupData)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
final JLGGroupData groupData = (JLGGroupData) obj;
|
final JLGGroupData groupData = (JLGGroupData) obj;
|
||||||
return groupData.groupId.compareTo(this.groupId) == 0;
|
return groupData.groupId.compareTo(this.groupId) == 0;
|
||||||
}
|
}
|
||||||
|
|||||||
+3
@@ -67,6 +67,9 @@ public class LoanDisbursementDetails extends AbstractPersistableCustom {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(final Object obj) {
|
public boolean equals(final Object obj) {
|
||||||
|
if (!(obj instanceof LoanDisbursementDetails)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
final LoanDisbursementDetails loanDisbursementDetails = (LoanDisbursementDetails) obj;
|
final LoanDisbursementDetails loanDisbursementDetails = (LoanDisbursementDetails) obj;
|
||||||
if (loanDisbursementDetails.principal.equals(this.principal)
|
if (loanDisbursementDetails.principal.equals(this.principal)
|
||||||
&& loanDisbursementDetails.expectedDisbursementDate.equals(this.expectedDisbursementDate))
|
&& loanDisbursementDetails.expectedDisbursementDate.equals(this.expectedDisbursementDate))
|
||||||
|
|||||||
+3
@@ -1024,6 +1024,9 @@ public class LoanProductData implements Serializable {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(final Object obj) {
|
public boolean equals(final Object obj) {
|
||||||
|
if (!(obj instanceof LoanProductData)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
final LoanProductData loanProductData = (LoanProductData) obj;
|
final LoanProductData loanProductData = (LoanProductData) obj;
|
||||||
return loanProductData.id.equals(this.id);
|
return loanProductData.id.equals(this.id);
|
||||||
}
|
}
|
||||||
|
|||||||
+3
@@ -80,6 +80,9 @@ public class LoanProductBorrowerCycleVariations extends AbstractPersistableCusto
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(final Object obj) {
|
public boolean equals(final Object obj) {
|
||||||
|
if (!(obj instanceof LoanProductBorrowerCycleVariations)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
final LoanProductBorrowerCycleVariations other = (LoanProductBorrowerCycleVariations) obj;
|
final LoanProductBorrowerCycleVariations other = (LoanProductBorrowerCycleVariations) obj;
|
||||||
return Objects.equals(loanProduct, other.loanProduct)
|
return Objects.equals(loanProduct, other.loanProduct)
|
||||||
&& Objects.equals(borrowerCycleNumber, other.borrowerCycleNumber)
|
&& Objects.equals(borrowerCycleNumber, other.borrowerCycleNumber)
|
||||||
|
|||||||
+3
@@ -425,6 +425,9 @@ public class SavingsProductData implements Serializable {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(final Object obj) {
|
public boolean equals(final Object obj) {
|
||||||
|
if (!(obj instanceof SavingsProductData)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
final SavingsProductData productData = (SavingsProductData) obj;
|
final SavingsProductData productData = (SavingsProductData) obj;
|
||||||
return productData.id.compareTo(this.id) == 0;
|
return productData.id.compareTo(this.id) == 0;
|
||||||
}
|
}
|
||||||
|
|||||||
+3
@@ -44,6 +44,9 @@ public class RoleData implements Serializable {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(final Object obj) {
|
public boolean equals(final Object obj) {
|
||||||
|
if (!(obj instanceof RoleData)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
final RoleData role = (RoleData) obj;
|
final RoleData role = (RoleData) obj;
|
||||||
return this.id.equals(role.id);
|
return this.id.equals(role.id);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user