From dd2aef555893e48ca8fcdc0cfb0a54538e49cfad Mon Sep 17 00:00:00 2001 From: "a.sreekumar" Date: Fri, 4 Dec 2020 11:04:10 +0000 Subject: Fixing sonar issues in policy-common Change-Id: I4dce0dbdf71d01fbb59e9bf861d1af1ab49e5ae7 Issue-ID: POLICY-2914 Signed-off-by: a.sreekumar --- .../onap/policy/common/parameters/CommonGroupValidationResult.java | 3 ++- .../java/org/onap/policy/common/parameters/ValidationResultImpl.java | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'common-parameters/src') diff --git a/common-parameters/src/main/java/org/onap/policy/common/parameters/CommonGroupValidationResult.java b/common-parameters/src/main/java/org/onap/policy/common/parameters/CommonGroupValidationResult.java index f35d1970..ba31698a 100644 --- a/common-parameters/src/main/java/org/onap/policy/common/parameters/CommonGroupValidationResult.java +++ b/common-parameters/src/main/java/org/onap/policy/common/parameters/CommonGroupValidationResult.java @@ -1,6 +1,7 @@ /*- * ============LICENSE_START======================================================= * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved. + * Modifications Copyright (C) 2020 Bell Canada. All rights reserved. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -52,7 +53,7 @@ public abstract class CommonGroupValidationResult implements ValidationResult { * * @param messagePrefix status message prefix */ - public CommonGroupValidationResult(String messagePrefix) { + protected CommonGroupValidationResult(String messagePrefix) { this.messagePrefix = messagePrefix; this.message = messagePrefix + status.toString(); } diff --git a/common-parameters/src/main/java/org/onap/policy/common/parameters/ValidationResultImpl.java b/common-parameters/src/main/java/org/onap/policy/common/parameters/ValidationResultImpl.java index 1d8aa239..0fda51ad 100644 --- a/common-parameters/src/main/java/org/onap/policy/common/parameters/ValidationResultImpl.java +++ b/common-parameters/src/main/java/org/onap/policy/common/parameters/ValidationResultImpl.java @@ -1,6 +1,7 @@ /* * ============LICENSE_START======================================================= * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved. + * Modifications Copyright (C) 2020 Bell Canada. All rights reserved. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -56,7 +57,7 @@ public abstract class ValidationResultImpl implements ValidationResult { * @param name name of the object of this result * @param object object being validated */ - public ValidationResultImpl(String name, Object object) { + protected ValidationResultImpl(String name, Object object) { this.name = name; this.object = object; } @@ -69,7 +70,7 @@ public abstract class ValidationResultImpl implements ValidationResult { * @param status the validation status * @param message the validation message explaining the validation status */ - public ValidationResultImpl(String name, Object object, ValidationStatus status, String message) { + protected ValidationResultImpl(String name, Object object, ValidationStatus status, String message) { this.name = name; this.object = object; this.status = status; -- cgit 1.2.3-korg