From 50d72892e98753fd012aff00c2d42979dce9653e Mon Sep 17 00:00:00 2001 From: liamfallon Date: Thu, 18 Jun 2020 13:49:01 +0100 Subject: Changes for checkstyle 8.32 Issue-ID: POLICY-2188 Change-Id: I00843c61a6567001fc35c3ebb77b6843a1eb7da2 Signed-off-by: liamfallon --- .../java/org/onap/policy/common/parameters/GroupValidationResult.java | 3 +-- .../org/onap/policy/common/parameters/TestBeanValidationResult.java | 2 +- .../onap/policy/common/parameters/testclasses/TestParametersL10.java | 3 +-- 3 files changed, 3 insertions(+), 5 deletions(-) (limited to 'common-parameters') 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 map = null; + Map 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--; } -- cgit 1.2.3-korg