summaryrefslogtreecommitdiffstats
path: root/common-parameters
diff options
context:
space:
mode:
authorliamfallon <liam.fallon@est.tech>2020-06-18 13:49:01 +0100
committerliamfallon <liam.fallon@est.tech>2020-06-18 14:11:15 +0100
commit50d72892e98753fd012aff00c2d42979dce9653e (patch)
tree45c43f2a4d7a9bbdc2dda4dc0298dedee6afb1a6 /common-parameters
parent611f63a4bb71d677cf2665b1794e91148ba42a51 (diff)
Changes for checkstyle 8.32
Issue-ID: POLICY-2188 Change-Id: I00843c61a6567001fc35c3ebb77b6843a1eb7da2 Signed-off-by: liamfallon <liam.fallon@est.tech>
Diffstat (limited to 'common-parameters')
-rw-r--r--common-parameters/src/main/java/org/onap/policy/common/parameters/GroupValidationResult.java3
-rw-r--r--common-parameters/src/test/java/org/onap/policy/common/parameters/TestBeanValidationResult.java2
-rw-r--r--common-parameters/src/test/java/org/onap/policy/common/parameters/testclasses/TestParametersL10.java3
3 files changed, 3 insertions, 5 deletions
diff --git a/common-parameters/src/main/java/org/onap/policy/common/parameters/GroupValidationResult.java b/common-parameters/src/main/java/org/onap/policy/common/parameters/GroupValidationResult.java
index fd680451..1fe560d8 100644
--- a/common-parameters/src/main/java/org/onap/policy/common/parameters/GroupValidationResult.java
+++ b/common-parameters/src/main/java/org/onap/policy/common/parameters/GroupValidationResult.java
@@ -111,8 +111,7 @@ public class GroupValidationResult extends CommonGroupValidationResult {
if (ParameterGroup.class.isAssignableFrom(fieldType)) {
if (null != fieldObject) {
return ((ParameterGroup) fieldObject).validate();
- }
- else {
+ } else {
return new GroupValidationResult((ParameterGroup) fieldObject);
}
}
diff --git a/common-parameters/src/test/java/org/onap/policy/common/parameters/TestBeanValidationResult.java b/common-parameters/src/test/java/org/onap/policy/common/parameters/TestBeanValidationResult.java
index 8f978c69..8795602a 100644
--- a/common-parameters/src/test/java/org/onap/policy/common/parameters/TestBeanValidationResult.java
+++ b/common-parameters/src/test/java/org/onap/policy/common/parameters/TestBeanValidationResult.java
@@ -160,7 +160,7 @@ public class TestBeanValidationResult {
@Test
public void testValidateMap() {
- Map<String,ValidationResult> map = null;
+ Map<String, ValidationResult> map = null;
bean = new BeanValidationResult(NAME, OBJECT);
assertTrue(bean.validateMap(MY_MAP, map, validMapEntry()));
assertTrue(bean.isValid());
diff --git a/common-parameters/src/test/java/org/onap/policy/common/parameters/testclasses/TestParametersL10.java b/common-parameters/src/test/java/org/onap/policy/common/parameters/testclasses/TestParametersL10.java
index 7276b504..bd2cf101 100644
--- a/common-parameters/src/test/java/org/onap/policy/common/parameters/testclasses/TestParametersL10.java
+++ b/common-parameters/src/test/java/org/onap/policy/common/parameters/testclasses/TestParametersL10.java
@@ -109,8 +109,7 @@ public class TestParametersL10 extends ParameterGroupImpl {
public void triggerValidationStatus(final ValidationStatus triggerStatus, int level) {
if (level == 0) {
return;
- }
- else {
+ } else {
level--;
}