Update spotbugs to v4.2.0(FINERACT-986)
This commit is contained in:
committed by
Michael Vorburger ⛑️
parent
f93cd4dbbd
commit
3bc7914068
@@ -44,7 +44,7 @@ buildscript {
|
|||||||
classpath 'org.apache.openjpa:openjpa:3.1.1' // when upgrading, also change OpenJPA version repeated below in dependencyManagement!
|
classpath 'org.apache.openjpa:openjpa:3.1.1' // when upgrading, also change OpenJPA version repeated below in dependencyManagement!
|
||||||
classpath 'com.radcortez.gradle:openjpa-gradle-plugin:3.1.0'
|
classpath 'com.radcortez.gradle:openjpa-gradle-plugin:3.1.0'
|
||||||
classpath 'gradle.plugin.org.nosphere.apache:creadur-rat-gradle:0.3.1'
|
classpath 'gradle.plugin.org.nosphere.apache:creadur-rat-gradle:0.3.1'
|
||||||
classpath "gradle.plugin.com.github.spotbugs.snom:spotbugs-gradle-plugin:4.0.8"
|
classpath "gradle.plugin.com.github.spotbugs.snom:spotbugs-gradle-plugin:4.2.0"
|
||||||
classpath "gradle.plugin.com.github.andygoossens:gradle-modernizer-plugin:1.3.0"
|
classpath "gradle.plugin.com.github.andygoossens:gradle-modernizer-plugin:1.3.0"
|
||||||
classpath "gradle.plugin.com.gorylenko.gradle-git-properties:gradle-git-properties:2.2.2"
|
classpath "gradle.plugin.com.gorylenko.gradle-git-properties:gradle-git-properties:2.2.2"
|
||||||
}
|
}
|
||||||
@@ -109,6 +109,7 @@ dependencyManagement {
|
|||||||
dependency 'io.github.classgraph:classgraph:4.8.78'
|
dependency 'io.github.classgraph:classgraph:4.8.78'
|
||||||
dependency 'org.dom4j:dom4j:2.1.0'
|
dependency 'org.dom4j:dom4j:2.1.0'
|
||||||
dependency 'org.awaitility:awaitility:4.0.2'
|
dependency 'org.awaitility:awaitility:4.0.2'
|
||||||
|
dependency 'com.github.spotbugs:spotbugs-annotations:4.0.3'
|
||||||
|
|
||||||
dependencySet(group: 'com.sun.jersey', version: jerseyVersion) {
|
dependencySet(group: 'com.sun.jersey', version: jerseyVersion) {
|
||||||
entry 'jersey-core'
|
entry 'jersey-core'
|
||||||
|
|||||||
@@ -71,7 +71,9 @@ dependencies {
|
|||||||
|
|
||||||
// JAX-B dependencies for JDK 9+
|
// JAX-B dependencies for JDK 9+
|
||||||
"jakarta.xml.bind:jakarta.xml.bind-api",
|
"jakarta.xml.bind:jakarta.xml.bind-api",
|
||||||
"org.dom4j:dom4j"
|
"org.dom4j:dom4j",
|
||||||
|
|
||||||
|
'com.github.spotbugs:spotbugs-annotations',
|
||||||
)
|
)
|
||||||
implementation ('io.swagger:swagger-jersey-jaxrs') {
|
implementation ('io.swagger:swagger-jersey-jaxrs') {
|
||||||
exclude group: 'javax.validation'
|
exclude group: 'javax.validation'
|
||||||
|
|||||||
+4
@@ -25,6 +25,7 @@ import static org.apache.fineract.portfolio.savings.SavingsApiConstants.feeInter
|
|||||||
import static org.apache.fineract.portfolio.savings.SavingsApiConstants.feeOnMonthDayParamName;
|
import static org.apache.fineract.portfolio.savings.SavingsApiConstants.feeOnMonthDayParamName;
|
||||||
import static org.apache.fineract.portfolio.savings.SavingsApiConstants.localeParamName;
|
import static org.apache.fineract.portfolio.savings.SavingsApiConstants.localeParamName;
|
||||||
|
|
||||||
|
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.math.MathContext;
|
import java.math.MathContext;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
@@ -423,6 +424,8 @@ public class SavingsAccountCharge extends AbstractPersistableCustom {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@SuppressFBWarnings(value="NP_NULL_PARAM_DEREF_NONVIRTUAL") // https://issues.apache.org/jira/browse/FINERACT-987
|
||||||
public Map<String, Object> update(final JsonCommand command) {
|
public Map<String, Object> update(final JsonCommand command) {
|
||||||
|
|
||||||
final Map<String, Object> actualChanges = new LinkedHashMap<>(7);
|
final Map<String, Object> actualChanges = new LinkedHashMap<>(7);
|
||||||
@@ -465,6 +468,7 @@ public class SavingsAccountCharge extends AbstractPersistableCustom {
|
|||||||
final BigDecimal newValue = command.bigDecimalValueOfParameterNamed(amountParamName);
|
final BigDecimal newValue = command.bigDecimalValueOfParameterNamed(amountParamName);
|
||||||
actualChanges.put(amountParamName, newValue);
|
actualChanges.put(amountParamName, newValue);
|
||||||
actualChanges.put(localeParamName, localeAsInput);
|
actualChanges.put(localeParamName, localeAsInput);
|
||||||
|
|
||||||
switch (ChargeCalculationType.fromInt(this.chargeCalculation)) {
|
switch (ChargeCalculationType.fromInt(this.chargeCalculation)) {
|
||||||
case INVALID:
|
case INVALID:
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user