more SpotBugs related / inspired code clean up (see FINERACT-702)

based upon code review of changes made by @awasum in previous commit:

 - fix clear contains() GC_UNRELATED_TYPES bug in Loan

 - fix clear equals() EC_UNRELATED_TYPES bug in Loan

 - fix more equals() & hashCode() in...
    * Charge
    * TrialBalance
    * LoanProductBorrowerCycleVariations
    * LoanProductProvisioningEntry

 - fix AccountingConstants to avoid using @FindBugsSuppressWarnings

 - fix SelfLoansDataValidator instead of @FindBugsSuppressWarnings

 - minor clean up in build.gradle (spotbugs has replaced findbugs)

PS: This change originally included also fixing the missing hashCode()
    and equals() in ShareAccountCharge, but that turned out to be non
    trivial, see FINERACT-827, and is thus not yet fixed by this.
This commit is contained in:
Michael Vorburger
2020-01-13 08:41:16 +01:00
parent 7420545d8f
commit 6ca1a678cb
14 changed files with 124 additions and 133 deletions
-6
View File
@@ -64,7 +64,6 @@ apply plugin: 'openjpa'
apply plugin: "com.github.spotbugs"
// apply plugin: 'pmd'
// apply plugin: 'findbugs'
dependencyManagement {
imports {
@@ -341,11 +340,6 @@ compileJava{
/*
pmd {
sourceSets = [sourceSets.main]
ignoreFailures = true
}
findbugs {
ignoreFailures = true
sourceSets = [sourceSets.main]
}
*/